> [Userscript] Terry's Vigilante Scripts

 
post Apr 24 2024, 09:54
Post #21
-terry-



Active Poster
*******
Group: Gold Star Club
Posts: 1,959
Joined: 8-August 19
Level 500 (Ponyslayer)


This is a collection of scripts intended mostly for Vig use.

[Downvoted Tag Checker]

Helps you keep track of galleries with downvoted tags and galleries that require reclassing.

Features:
- Automatically tracks galleries with downvoted tags and open reclasses
- Notes directly within the gallery for future reference
- Generates formatted text for the "Tagging and Mistagging Assistance" and "Renaming/Reclassing" forum threads
- Search for galleries by title, tags, notes, or category
- Sort galleries by date added or last updated in ascending or descending order
- Filtering by specific categories like Doujinshi, Manga, etc.
- Backup and restore data
- Import your data from the other Tag Check script

Usage:
1. Navigate to http://ehentaihip.com/home.php
2. Click on the "Check Tags" button to fetch the latest gallery data and generate the interface
3. The interface will display galleries with downvoted tags and galleries requiring reclassing.
4. Click the "Help" link in the interface for a detailed explanation of all features.

Options:
- update_delay: The minimum time interval between gallery updates.


[Weak Tag Checker]

This is intended as an addition to the Downvoted Tag Checker script, but can also be used with the other Tag Checker script or standalone (although the button placement will be messed up)

Checks your tag list for weak tags.
Due to the API not returning weak tags, this is an alternative to checking hundreds of galleries for downvoted tags by loading the gallery page, which can be very slow and trigger flood limits.
The limitation is that the taglist only goes as far back as 1 month, so make sure to check weak tags every few days or so. (Eventually:tm: this should become part of the downvoted tag checker script for better integration)

Features:
- Checks your tag list for weak tags
- Generates an HTML page with the results

Usage:
1. Navigate to http://ehentaihip.com/home.php
2. Click on the "Check Weak Tags" button and wait for the script to finish processing and generate the interface.

Options:
- show_only_weak: Set to true to only display weak tags in the HTML page, or false to display all downvoted tags (solid, dashed, and weak).


[Check Tag Post]

Checks if there's any tags left to downvote or reclass in your post, and formats the post accordingly.

Features:
- Checks if there's any tags left to downvote or reclass in your post
- Strikes through galleries (urls) that have no tags left to downvote or reclass
- Automatically formats the post by pushing striked through URLs to the bottom

Usage:
1. Navigate to either the Tagging and Mistagging Assistance or Renaming/Reclassing threads.
2. Edit your post.
3. Click on the "Check Tags" or "Check Reclasses" button and wait for the script to finish checking the galleries and formatting the post.

Options:
- use_ex: Set to true if you can't use e-hentai.


[Count Animated Images]

Counts the animated images on a gallery and displays useful information
IMPORTANT: Only the current page you are on is taken into account by the script, if the gallery has multiple pages, the presence count will not be accurate and you'll have to do the math yourself. ALWAYS double check and don't blindly trust the script.

Features:
- Counts animated images on the current page
- Calculates presence
- Displays all sequential animated images and non-sequential ones

Usage:
1. Open a Gallery.
2. Click on the "(X Animated)" text to open the list with all the info.


[Reverse Image Search]

This userscript adds a reverse image search functionality.

Features:
- Reverse Image Search: Clicking the button activates selection mode, allowing you to choose a thumbnail to search.
- Search Engine Selection: A dialog box lets you choose specific search engines before initiating the search. You can select all, none, default ones, or filter by 2D/3D image search capabilities. The Search Engines are customizable too.

Modifying search_engines:
To modify the search_engines array, you can add, remove, or edit entries. Each entry should have the following properties:
- name: The display name of the search engine
- url: The search URL (the image URL is appended to this)
- default: Boolean indicating if it's selected by default
- type: '2d', '3d', or 'both' to categorize the engine's search capabilities

Example of adding a new search engine:
CODE
{ name: 'New Engine', url: 'https://newengine.com/search?image=', default: false, type: '2d' }


Usage:
0. Make sure your browser allows pop-ups from e-hentai.org
1. Go to a gallery page.
2. Click the "Reverse Search" button in the right menu next to the tags.
3. Click the thumbnail you want to search.
4. Choose your desired search engines in the dialog box.
5. Click "Search". The selected search engines will open in new tabs.


[Tag Tracker Helper]

This userscript enhances the Tag Tracker functionality by adding quick access to search filters and highlighting specific tags.

Features:
- Adds custom search filter buttons to quickly apply predefined filters.
- Highlights tags specified in the tag_filters array.
- Filter by gallery category
- Links open in a new tab

Customizing Search Filters:
- The search_filters array defines the custom search filters and their corresponding button labels.
- Each filter is an object with three properties:
  • label: The text that will appear on the button.
  • params: The query parameters for the filter. Modify these to match your desired filter criteria.
  • category: Optional. The categories that will be shown by default.
- You can add, remove, or modify the filters in the search_filters array to suit your needs.
See this post for a more detailed example.

Customizing Tag Highlighting:
- The tag_filters array specifies the tags you want to highlight.
- Add or remove tags from this array based on the tags you want to highlight.

Usage:
1. Navigate to the Tag Tracker page (https://repo.e-hentai.org/tools/tagtrack)
2. The specified tags will be highlighted in gold color throughout the page.
3. The custom search filter buttons will appear below the other filtering options.
4. Click on a button to apply the corresponding filter.
5. Click on 'Select Categories' to reveal the category filter

Note: The script will only highlight tags that are not already colored (i.e., tags that you haven't voted on).
When a Gallery filter is enabled, because the filtering is done client-side, only a small amount of galleries and tags might be visible. To fix this, the script will automatically append a couple of pages until the page is a bit fuller.
A line on the left part of the page will indicate where a new page was appended.


[EH Gallery Comparison]

Features:
- Compare as many galleries as you want
- Links are automatically extracted from the inputted text, no need for any formatting
- Thumbnail view for a better overview
- Image Similarity Scanning using [github.com] pixelmatch to quickly match images with different hashes
- Append new galleries within the UI.
- Links to the image itself and "View Same"

Usage:
1. Navigate to any gallery
2. Click on the "Compare Gallery" button on the right side menu
3. Enter at least on gallery
4. Click on the Thumbnail to open the Image, Click on "View Same" to find the same picture in other galleries.

Options:
- Matching Treshold: Adjust the threshold for matching (lower values = more strict, higher values = faster, more lenient)
I recommend to not go above 0.5 or too low.
- Difference Threshold: Adjust the threshold for maximum difference (lower values = more strict, higher values = more lenient)
The maximum amount of pixels that can be different before the image is not considered a duplicate. You can play around with it up i recommend to stay between 500 and 1000.
- Number of Workers: Adjust the number of workers (cpu threads) to use
Don't set it too high if there are a lot of images, at 24 cores it started to crash the site for me.


Notes:
The comparison does not work on Firefox with resistfingerprinting enabled (even when allowing extracting canvas). If you find out how to get it to work share it.
There's certainly gonna be bugs and weird behavior at times, that's to be expected from this. You can report bugs, just make sure i can reproduce it and copy the error log in the console.

________________________________________________________________

Downloads:
[codeberg.org] Downvoted Tag Checker
[codeberg.org] Check Weak Tags
[codeberg.org] Count Animated Images
[codeberg.org] Check Tag Post
[codeberg.org] EH Reverse Image Search
[codeberg.org] Tag Tracker Helper
[codeberg.org] EH Gallery Comparison

This post has been edited by -terry-: Oct 8 2024, 21:17


--------------------
User is online!Profile CardPM
Go to the top of the page
+Quote Post


Posts in this topic
-terry-   [Userscript] Terry's Vigilante Scripts   Apr 24 2024, 09:54
-terry-   Key differences in usage to the Tag Check script: ...   Apr 24 2024, 09:55
Lady_Slayer   thank you terry.   Apr 24 2024, 12:19
Guardian of Loli   Thank you very much Terry. The automatic check an...   Apr 24 2024, 14:40
Lady_Slayer   what the heck is with the triple duplicated tag na...   Apr 25 2024, 08:12
-terry-   [quote name='Lady_Slayer' post='6474642' date='Apr...   Apr 25 2024, 08:22
Lady_Slayer   [quote name='-terry-' post='6474646' dat...   Apr 25 2024, 08:44
Lady_Slayer   here to report some minor bug. It's up to you ...   Apr 25 2024, 08:40
-terry-   [quote name='Lady_Slayer' post='6474652' date='Apr...   Apr 25 2024, 08:50
Shank   Added to the index (yesterday but forgot to mentio...   Apr 25 2024, 12:40
-terry-   I added a new script to count animated images on a...   May 11 2024, 16:57
-terry-   New script: This userscript adds a reverse image ...   Jul 12 2024, 05:36
Agoraphobia   Forgot to do this, but pinned.   Jul 25 2024, 07:14
-TT-   I don't know how, but I managed to break Downv...   Aug 21 2024, 15:45
-terry-   [quote name='-TT-' post='6533623' date='...   Aug 21 2024, 15:57
romanicyte   [quote name='-terry-' post='6533625' dat...   Aug 21 2024, 18:00
-TT-   By the way, wouldn't it be better to use GM_se...   Aug 21 2024, 17:30
-terry-   Alright here is the script now using GM Storage, f...   Aug 21 2024, 19:26
-TT-   Thanks -terry-. It works great now. [quote name='...   Aug 21 2024, 21:16
-terry-   If i knew it existed back then, probably. I just c...   Aug 21 2024, 17:47
Lady_Slayer   Not a direct request, but just to report something...   Aug 27 2024, 01:23
Glovelove.   [quote name='Lady_Slayer' post='6536262' date='Aug...   Aug 27 2024, 02:38
-terry-   Correct, it just checks if theres any tags you hav...   Aug 27 2024, 03:09
-TT-   Maybe `initialize_gallery_info()` could ch...   Sep 1 2024, 21:40
romanicyte   It would be great if Check Tag Post could also cro...   Sep 4 2024, 17:46
-terry-   [quote name='romanicyte' post='6540303' date='Sep ...   Sep 5 2024, 15:14
-terry-   New script! This time a more advanced gallery ...   Oct 8 2024, 19:23
-TT-   Bug report for Downvoted Tag Checker... in relatio...   Oct 19 2024, 19:10
-terry-   [quote name='-TT-' post='6561596' date='...   Oct 19 2024, 23:45
-TT-   Yeah, doing it this way should be fine too. Howeve...   Oct 20 2024, 12:59
-terry-   Maybe, don't think theres any such script and ...   Oct 20 2024, 13:39
-TT-   Like I mentioned earlier, a script I'm working...   Oct 20 2024, 14:03
-terry-   Sounds good. https://codeberg.org/terry123/eh-sc...   Oct 20 2024, 14:27


Fast ReplyReply to this topicStart new topic
1 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
1 Members: webetto

 


Lo-Fi Version Time is now: 22nd October 2024 - 05:57