FireFox Add-on to modify forms?

  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1585

Post 3+ Months Ago

There are a few websites where the way they setup their forms are horrible. For example, they have a <select> with multiple set to 3, but they have a list of 400 things and I have to go there all the time and it drives me crazy. Anybody know if there is a FireFox mod that lets you change forms on the fly by saving your changes on the clientside?
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • Mr OBrien
  • Graduate
  • Graduate
  • User avatar
  • Posts: 182
  • Loc: down a creek without a paddle

Post 3+ Months Ago

Would this work?
https://addons.mozilla.org/en-US/firefox/addon/966
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

"Greasemonkey".
https://addons.mozilla.org/en-US/firefox/addon/748
  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1585

Post 3+ Months Ago

Mr OBrien wrote:
Would this work?
https://addons.mozilla.org/en-US/firefox/addon/966


Heh that's funny, I found that while I was googling, but no, I don't think it will. How hard is it with Greasemonkey Joe? I know about that add-on and had it at one point but... erm...
  • joebert
  • Fart Bubbles
  • Genius
  • User avatar
  • Posts: 13502
  • Loc: Florida

Post 3+ Months Ago

You can think of Greasemonkey as being able to modify the Javascript running on a page.

It would pretty much be writing a user.js that consisted of
Code: [ Select ]
document.getElementsByName('problem')[0].size = 20;


Come to think of it, I believe Firefox has its' own user.js system in the same place as "userContent.css" where this could be used also.

It takes me forever to get any kind of user.js working in Firefox, so I'm kinda trying to avoid showing you how to do it exactly, but still let you know where to start. :)
  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1585

Post 3+ Months Ago

Aha! I was missing the [0]... oh wait that didn't work either. :(

I tried making a function and then onload run function, but that didn't work either.

I also tried this:
Code: [ Select ]
 
document.getElementsByName('sel_subj')[0].size = 20;
document.getElementByID('subj_id').size = 20;
 
  1.  
  2. document.getElementsByName('sel_subj')[0].size = 20;
  3. document.getElementByID('subj_id').size = 20;
  4.  


The select is...
Code: [ Select ]
 
<SELECT NAME="sel_subj" SIZE="3" MULTIPLE ID="subj_id">
//stuff
</select>
 
  1.  
  2. <SELECT NAME="sel_subj" SIZE="3" MULTIPLE ID="subj_id">
  3. //stuff
  4. </select>
  5.  


Problem is they use frames and the select is in 1 of them. They didn't give the form that the select box is in an ID, so you can't do document.form.select_name. :(

Thanks for the info though man. Piece of crap website... grr... this will help me select things a heck of a lot faster though.

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 39 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.