post #1 of 1
Thread Starter 
Code:
javascript:var%20theClass%20=%20document.getElementsByClassName(%22delay%22);for(var%20i=0;i<theClass.length;%20i++)%20{var%20str%20=%20theClass[i].getAttribute(%22rel%22);var%20myTitle%20=%20theClass[i].getAttribute(%22alt%22);if%20(str.indexOf(%271%27))%20{str%20=%20str.replace(%271%27,%20%27%27)%20;theClass[i].setAttribute(%27rel%27,%20str);theClass[i].innerHTML%20=%20%27<img%20src=%22%27+str+%27%22>%27;if%20(myTitle%20==%20%22:\\%22%20)%20{theClass[i].innerHTML%20=%20%27<img%20src=%22http://www.islamicboard.com/images/smilies/set/hmm2.gif%22>%27;}if%20(myTitle%20==%20%22:no:%22)%20{theClass[i].innerHTML%20=%20%27<img%20src=%22http://forum.nin.com/bb/mods/smileys/images/smiley23.gif%22>%27;}if%20(myTitle%20==%20%22:err:%22)%20{theClass[i].innerHTML%20=%20%27<img%20src=%22http://www.carrie.cc/images/smileys/shakehead.gif%22>%27;}if%20(myTitle%20==%20%22:embarrass%22)%20{theClass[i].innerHTML%20=%20%27<img%20src=%22http://www.islamicboard.com/images/smilies/embarrassed.gif%22>%27;}if%20(myTitle%20==%20%22:grumble:%22%20)%20{theClass[i].innerHTML%20=%20%27<img%20src=%22http://www.fialand.com/bj-friends/smileys/grumble.gif%22>%27;}}}var%20theClass2%20=%20document.getElementsByClassName(%22bbcode_smiley%22);for(var%20z=0;i<2;%20z++)%20{var%20mySrc%20=%20theClass2[z].getAttribute(%22src%22);if%20(mySrc.indexOf(%271%27))%20{mySrc%20=%20mySrc.replace(%271%27,%20%27%27)%20;theClass2[z].setAttribute(%22src%22,%20mySrc);}}


Copy the line of code above to use as a bookmarklet.
Edited by mstone - 8/24/12 at 5:36am

Life is too short to drink bad coffee.

Reply

Life is too short to drink bad coffee.

Reply