> [Userscript] Terry's Vigilante Scripts

 
post Apr 24 2024, 14:54
Post #41
-terry-



Active Poster
*******
Group: Gold Star Club
Posts: 2,085
Joined: 9-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
- Sort galleries by date added, last updated or Alphabetically
- 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.

Options:
- update_delay: The minimum time interval between gallery updates. (configured at the top of the code, will have to be changed every time the script updates)

Attached Image

[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 2 months, so make sure to check weak tags every week or so. (Eventually:tm: this might become part of the downvoted tag checker script for better integration)
Use the script sparingly, depending on how much you tag it will load a lot of pages.

Features:
- Checks your tag list for weak tags
- Generates a simple 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).

Attached Image

[Check Tag Post]

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. (configured at the top of the code, will have to be changed every time the script updates)

Attached Image

[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. Webp is currently NOT considered, they can be animated!

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

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

Attached Image

[Reverse Image Search]

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. Visit a gallery.
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.

Attached Image

[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.

Attached Image

[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"
- Extra information such as original resolution, file size, file type displayed

Usage:
1. Visit a Gallery
2. Click on the "Compare Gallery" button on the right side menu
3. Wait until the main gallery is fetched and processed
4. Append 1 or more galleries to compare

Options:
- Matching Treshold: Adjust the threshold for matching (lower values = more strict, higher values = 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.

________________________________________________________________

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-: Yesterday, 00:01


--------------------
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


Posts in this topic
-terry-   [Userscript] Terry's Vigilante Scripts   Apr 24 2024, 14:54
-terry-   Feedback: I'm open to adding useful features o...   Apr 24 2024, 14:55
Lady_Slayer   thank you terry.   Apr 24 2024, 17:19
Guardian of Loli   Thank you very much Terry. The automatic check an...   Apr 24 2024, 19:40
Lady_Slayer   what the heck is with the triple duplicated tag na...   Apr 25 2024, 13:12
-terry-   [quote name='Lady_Slayer' post='6474642' date='Apr...   Apr 25 2024, 13:22
Lady_Slayer   [quote name='-terry-' post='6474646' dat...   Apr 25 2024, 13:44
Lady_Slayer   here to report some minor bug. It's up to you ...   Apr 25 2024, 13:40
-terry-   [quote name='Lady_Slayer' post='6474652' date='Apr...   Apr 25 2024, 13:50
Shank   Added to the index (yesterday but forgot to mentio...   Apr 25 2024, 17:40
-terry-   I added a new script to count animated images on a...   May 11 2024, 21:57
-terry-   New script: This userscript adds a reverse image ...   Jul 12 2024, 10:36
Agoraphobia   Forgot to do this, but pinned.   Jul 25 2024, 12:14
-TT-   I don't know how, but I managed to break Downv...   Aug 21 2024, 20:45
-terry-   [quote name='-TT-' post='6533623' date='...   Aug 21 2024, 20:57
romanicyte   [quote name='-terry-' post='6533625' dat...   Aug 21 2024, 23:00
-TT-   By the way, wouldn't it be better to use GM_se...   Aug 21 2024, 22:30
-terry-   Alright here is the script now using GM Storage, f...   Aug 22 2024, 00:26
-TT-   Thanks -terry-. It works great now. [quote name='...   Aug 22 2024, 02:16
-terry-   If i knew it existed back then, probably. I just c...   Aug 21 2024, 22:47
Lady_Slayer   Not a direct request, but just to report something...   Aug 27 2024, 06:23
Glovelove.   [quote name='Lady_Slayer' post='6536262' date='Aug...   Aug 27 2024, 07:38
-terry-   Correct, it just checks if theres any tags you hav...   Aug 27 2024, 08:09
-TT-   Maybe `initialize_gallery_info()` could ch...   Sep 2 2024, 02:40
romanicyte   It would be great if Check Tag Post could also cro...   Sep 4 2024, 22:46
-terry-   [quote name='romanicyte' post='6540303' date='Sep ...   Sep 5 2024, 20:14
-terry-   New script! This time a more advanced gallery ...   Oct 9 2024, 00:23
-TT-   Bug report for Downvoted Tag Checker... in relatio...   Oct 20 2024, 00:10
-terry-   [quote name='-TT-' post='6561596' date='...   Oct 20 2024, 04:45
-TT-   Yeah, doing it this way should be fine too. Howeve...   Oct 20 2024, 17:59
-terry-   Maybe, don't think theres any such script and ...   Oct 20 2024, 18:39
-TT-   Like I mentioned earlier, a script I'm working...   Oct 20 2024, 19:03
-terry-   Sounds good. https://codeberg.org/terry123/eh-sc...   Oct 20 2024, 19:27
BlackHimari   @-terry- EH Gallery Comparison(v1.1) stopped work...   Oct 28 2024, 03:50
-terry-   It hasn't been pushed because its not on the m...   Oct 28 2024, 03:56
-terry-   All the scripts that were broken should be updated...   Oct 28 2024, 14:13
romanicyte   Check Weak Tags download link is dead.   Oct 29 2024, 03:21
-terry-   fixed   Oct 29 2024, 04:09
-TT-   Gallery Comparison doesn't work for galleries ...   Oct 30 2024, 02:30
-terry-   [quote name='-TT-' post='6566860' date='...   Oct 30 2024, 03:40
-TT-   It works very nice for a stopgap solution. However...   Oct 30 2024, 05:21
-terry-   Should be all done now, update has been pushed. S...   Oct 30 2024, 05:53
-TT-   This approach is probably not ideal from server lo...   Oct 30 2024, 06:35
-TT-   I played with the script some more and discovered ...   Oct 30 2024, 21:42
-terry-   I can see it, the logic was awfully inefficient. ...   Oct 30 2024, 22:46
-TT-   Close, but promises being awaited directly in loop...   Oct 30 2024, 23:46
-terry-   can't use fetch() because of CORS sadly. Will...   Oct 30 2024, 23:52
-terry-   Since a lot of newly uploaded galleries will be us...   Nov 4 2024, 15:17
-terry-   EH Gallery Comparison 1.4 -> 1.5 You can now v...   Nov 6 2024, 17:49
-terry-   EH Gallery Comparison 1.5 -> 1.6 Changes: - Ad...   Nov 16 2024, 22:01


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

 


Lo-Fi Version Time is now: 18th November 2024 - 05:51