i want to share with you the knowledge how to get thread sucker to work.
|id||This is like the "host label" and identifies a "thread sucker" entry.|
Please keep the same naming convention as it is for "host label".
|urlpattern||First part to activate the thread sucker.|
If matching and searchpattern would returning a result url, the entry will be active in the right-click menu.
In case the your solution is not returning something valid the entry will stay disabled.
|searchpattern||Second part to activate the thread sucker.|
You need to build a url for each page and return it, then this page will be searched for pictures.
The code will be run as many pages you want, depending on what you enter in the dialog boxes.
E.g. first page 1 and last page 3, it will be executed three times to build the page urls.
threadsucker_Globals.linkIndex is the variable we can access to use the current number.
In our example it will be 1 at the first time, 2 for the second run, and 3 for the last run.
let's have a look on an example:
return threadURL.match(/http.+\//) + "page" + (threadsucker_Globals.linkIndex);
IHG will check the current url to see if urlpattern is matching, if not end of task.
If so the "thread sucker" entry will get active.
If you go on this page:http://eroticity.net/threads/251007-Adorable-Amateur-Teens-and-Sexy-Milfs-Photos-Sets
The "thread sucker" will be active, because the urlpattern is matching.
When you now run the thread sucker and give 1 as first page and 3 as last page it will do the following:
Get the Url but without the last part, in our case "page2".
add "page"-text to the url.
Now add the first loop value, in our case 1, because first page is 1.
The function will return:
Please note that which each loop the page-number is increased by 1.
In case there is another number logic for pages, you need to address this within your code.
These links will be visited by IHG and searched for pictures using the rules in host file editor.
After all generated urls have been visited all found pictures will be queued and downloaded by IHG.
After changes in forum_styles.xml it is necessary to restart your browser.
Thank you SenileDog for pointing that out.
I hope this guide helps you!
If you have questions post em here and i try to answer when possible.
Feedback is appreciated
P.s. This knowledge is based on my experience with the thread sucker.