auto Uncheck checkbox at ImageShack.us

Subscribe to auto Uncheck checkbox at ImageShack.us 7 posts, 2 voices

 
Rebecca User

ImageShack has had for a while a small advertising banner with a check box beside it, that when you click "host image" it will open up a new tab/window with that advertisement. Unless you remember to uncheck the box. I always forget to uncheck it. I tried searching for such a script but every script that has ever had someone host an image through imageshack.us pops up in the search. I tried looking through a few of the pages but didn't see anything helpful.

 
Aquilax Scriptwright

To remove the advertising I suggest you the Adblock plus extension.

To uncheck all the checkboxes you can use the following code (I write it on the fly):


var xpath=document.evaluate("//input[@type='checkbox']",document,null,6,null);
for(var num1=0;num1<xpath.snapshotLength;num1++) xpath.snapshotItem(num1).checked=false;

 
Rebecca User

I have adblock plus... I'll try to see if I can figure out the editing of the stuff it blocks... I"m so behind on all this stuff!
Thanks btw!

 
Rebecca User

I apologize, it seems to not have worked...
Free Image Hosting at www.ImageShack.us

 
Aquilax Scriptwright

Uhm, I have tested it and it works, I suppose that you haven't changed the "included pages" to something like http://www.imageshack.us/*, otherwise without the wild char * it will not work on all the pages of imageshack.

I have tried to reload a few times the first page of imageshack but I have never received the banner that you say, try to add a few more Adblock filter subscriptions: [ABP v] --> Preferences... --> [Menu] Filters --> Add filter subscription...

 
Rebecca User

yea... I'm just not all that script/filter literate... and yes, I kept the wild on the end...

but back on topic, Though I love adblock plus I still think it would be a nice script to have available for greasemonkey as well...

 
Aquilax Scriptwright

Ok try the following code (always on the fly, check in the error console for bugs)


Array.forEach(document.getElementsByTagName("INPUT"),function(input){if (input.type.toLowerCase()=="checkbox") input.checked=false;});