Toribash
Original Post
How to deactivate all youSHOP items.
PS : thanks for all rep+ !

Hi .
I'm going to show you a simple tip to remove all your youshop items at once.
It will be useful for people who have like 1000 orc items to remove, it would take more than 10 minutes to remove each item.

Here are the steps you need to follow.

1 _ Go here ; http://forum.toribash.com/tori_inventory.php?sid=-2
It shows all your current market items.

2 _
javascript:(function(){var%20n_to_open,dl,dll,i;%20function%20linkIsSafe(u)%20{%20if%20(u.substr(0,7)=='mailto:')%20return%20false;%20if%20(u.substr(0,11)=='javascript:')%20return%20false;%20return%20true;%20}%20n_to_open%20=%200;%20dl%20=%20document.links;%20dll%20=%20dl.length;%20for(i%20=%200;%20i%20<%20dll;%20++i)%20{%20if%20(linkIsSafe(dl[i].href))%20++n_to_open;%20}%20if%20(!n_to_open)%20alert%20('no%20links');%20else%20{%20if%20(confirm('Open%20'%20+%20n_to_open%20+%20'%20links%20in%20new%20windows?'))%20for%20(i%20=%200;%20i%20<%20dll;%20++i)%20if%20(linkIsSafe(dl[i].href))%20window.open(dl[i].href);%20}%20})();
Copy this java script code . It works with:


3 _ Paste the code into your adress bar.
4 _ Press "Enter"

It will open in a new window each link that is in the page , that means it will click on every "remove" link , so it will remove all the items !




OR



If you wish to only remove a part of your market items :

1 _ Select the items you want to remove from your shop , like in the screenshot ;


2_ Copy
javascript:(function(){var%20n_to_open,dl,dll,i;%20function%20linkIsSafe(u)%20{%20if%20(u.substr(0,7)=='mailto:')%20return%20false;%20if%20(u.substr(0,11)=='javascript:')%20return%20false;%20return%20true;%20}%20n_to_open%20=%200;%20dl%20=%20document.links;%20dll%20=%20dl.length;%20if%20(window.getSelection%20&&%20window.getSelection().containsNode)%20{%20/*%20mozilla%20*/%20for(i=0;%20i<dll;%20++i)%20{%20if%20(window.getSelection().containsNode(dl[i],%20true)%20&&%20linkIsSafe(dl[i].href))%20++n_to_open;%20}%20if%20(n_to_open%20&&%20confirm('Open%20'%20+%20n_to_open%20+%20'%20selected%20links%20in%20new%20windows?'))%20{%20for(i=0;%20i<dll;%20++i)%20if%20(window.getSelection().containsNode(dl[i],%20true)%20&&%20linkIsSafe(dl[i].href))%20window.open(dl[i].href);%20}%20}%20/*%20/mozilla%20*/%20if%20(!n_to_open)%20{%20/*ie,%20or%20mozilla%20with%20no%20links%20selected:%20this%20section%20matches%20open_all_links,%20except%20for%20the%20alert%20text%20*/%20for(i%20=%200;%20i%20<%20dll;%20++i)%20{%20if%20(linkIsSafe(dl[i].href))%20++n_to_open;%20}%20if%20(!n_to_open)%20alert%20('no%20links');%20else%20{%20if%20(confirm('No%20links%20selected.%20%20Open%20'%20+%20n_to_open%20+%20'%20links%20in%20new%20windows?'))%20for%20(i%20=%200;%20i%20<%20dll;%20++i)%20if%20(linkIsSafe(dl[i].href))%20window.open(dl[i].href);%20}%20}%20})();
This java script code.
This one only works with firefox.

3_Paste it into your adress bar.
4 _Press "Enter" !
And it's done ! It will open each link within the selection in a new window , that means it will click on every "remove" link you selected !
Last edited by gabiel; May 22, 2010 at 04:21 PM.
I'm pretty sure some people don't know about this (;


EDIT : thanks for the rep+ ;)
Last edited by gabiel; May 22, 2010 at 02:51 PM.
Originally Posted by wakain View Post
good but we are already know that

I didn't O_o

Great tut, enjoy the +rep
Quit, probably.
Originally Posted by BirdFlu View Post
I didn't O_o

Great tut, enjoy the +rep

some guys know all toribash secrets and 3 of them hampa and hanz0 and mi
anyway +rep
Cool tutorial. If only I knew this 2 weeks ago. I used a tasker instead.

This will be really useful.

+rep