Saturday, March 31, 2012

How To Run JavaScript on Firefox Web Developer

Posted by NiKE at 5:02 PM

If you want to test a Javascript direct from your browser that it is a good idea to run it from the Firefox Web Developer panel to enter this use the keys shown below in the example JavaScript:alert, this will execute showing the resulting window below.


You can use this method on social websites like facebook to invite all your friends to a group or event using javascript.


To use either this script click invite all friends button on your group and then scroll down to the bottom of your list, this ensures that all of your friends are selected.


javascript:elms=document.getElementsByName("checkableitems[]");for (i=0;i<elms.length;i ){if (elms[i].type="checkbox" )elms[i].click()}; alert('Done, all your friends have been selected');




This may take upto 30 seconds depending upon how many friends you have, when all are selected, you will see the Javascript Alert windows then press the Submit button.

I believe that there used to be a firefox plugin called FaceTweak.xpi that did the same but I believe that this only worked on the old facebook API I have not yet tried it because I like experimenting with javascript, or you can use this InviteThemAll script run through another facebook plug calledGreasemonkey.xpi I would also install Quickjava.xpi along with greasemonkey to enable easier control of your Javascript ( also includes Java, Flash, Silverlight and CSS)

0 comments:

Post a Comment

 

SomeTimeSukx, Copyright © 2012