Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> [Script] Hashcompare (for Expunging)

 
post Dec 10 2021, 04:19
Post #1
Dnkz



never despair
*******
Group: Gold Star Club
Posts: 1,025
Joined: 1-June 14
Level 415 (Godslayer)


This is a userscript I wrote to help with expunging. It essentially collects the image hashes of the gallery that you are on and returns you the list. It also has some simple comparison functionalities.

Things to note:
- due to the nature of hashes, the tool is useless and won't return you any matches if the images have been altered in any way.
- it comes in form of a popup window, which is opened via a hotkey (default is 1) on any gallery's thumbnail view.
- on startup the script will only collect the hashes available on your current thumbnail page. By pressing the 'Grab all hashes' button you can make it fetch all hashes from the current gallery. (Keep it mind that this will go through all thumbnail pages, so if you overdo it you might get rate limited. Best to use the highest possible thumbnail row count per page)
- by default the script sets a cookie to receive the full hash in the page links, can be disabled as it is not required if you only use large thumbnails anyways.

the compare checks if:
- identical by files and order
- identical by files
- A contained in B
- B contained in A
- matching unique hashes, will return the amount (I'll eventually make this be displayed better)

Attached Image

1.6.3 (2023-08-23):
- Rewritten to plain javascript instead of partial jquery (done by Cipher-kun)
- Applies the dark mode from the MEMS to the popup (done by Cipher-kun)

1.6.4 (2023-08-25):
- fixed some broken buttons (done by Cipher-kun)

1.6.5 (2023-10-31):
- fixed script being broken due to UI changes on e-hentai

Attached File  Hashcompare_1.6.5.user.js.txt ( 22.79k ) Number of downloads: 34


This post has been edited by Dnkz: Oct 31 2023, 04:58
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 10 2021, 13:42
Post #2
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,045
Joined: 24-March 12
Level 500 (Godslayer)


This is pretty amazing, I was thinking of writing something of the kind for months. Thanks. Added to the index.

Btw, this will sound paranoid but dependency on jquery allow jquery.com to know what galleries you (or any user of the script) are looking at. Something that may be undesirable for some people. Just a suggestion but maybe you could get away with:

CODE
var $ = e => document.querySelector(e);
var $$ = e => document.querySelectorAll(e);
domElement.prototype.css = s => ...
domElement.prototype.val = s => ...
and so on
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Dec 12 2021, 06:46
Post #3
Dnkz



never despair
*******
Group: Gold Star Club
Posts: 1,025
Joined: 1-June 14
Level 415 (Godslayer)


QUOTE(blue penguin @ Dec 10 2021, 12:42) *

This is pretty amazing, I was thinking of writing something of the kind for months. Thanks. Added to the index.

Thanks!

QUOTE(blue penguin @ Dec 10 2021, 12:42) *

Btw, this will sound paranoid but dependency on jquery allow jquery.com to know what galleries you (or any user of the script) are looking at. Something that may be undesirable for some people. Just a suggestion but maybe you could get away with:

CODE
var $ = e => document.querySelector(e);
var $$ = e => document.querySelectorAll(e);
domElement.prototype.css = s => ...
domElement.prototype.val = s => ...
and so on

I understand your concerns, I'll look into it
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Aug 24 2023, 01:52
Post #4
Dnkz



never despair
*******
Group: Gold Star Club
Posts: 1,025
Joined: 1-June 14
Level 415 (Godslayer)


QUOTE(blue penguin @ Dec 10 2021, 11:42) *

Btw, this will sound paranoid but dependency on jquery allow jquery.com to know what galleries you (or any user of the script) are looking at. Something that may be undesirable for some people.

2 years late but updated. It also checks if the dark theme from Mayriad's Masterscript is active and applies it to the popup aswell.

All done by Cipher-kun
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Oct 31 2023, 04:42
Post #5
Dnkz



never despair
*******
Group: Gold Star Club
Posts: 1,025
Joined: 1-June 14
Level 415 (Godslayer)


script was broken on fjord and recently as a whole due to UI changes on E-Hentai. its working again
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


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

 


Lo-Fi Version Time is now: 29th April 2024 - 22:31