Welcome Guest ( Log In | Register )

2 Pages V  1 2 >  
Reply to this topicStart new topic
> [Userscript] Check Tag Post, Strike through any cleaned up galleries in your tag post

 
post Oct 3 2023, 12:54
Post #1
-terry-



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


See https://forums.e-hentai.org/index.php?showtopic=276004

This post has been edited by -terry-: Apr 24 2024, 14:59
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post Oct 3 2023, 14:55
Post #2
Agoraphobia



✝️ Ascension of Angel ✝️
***********
Group: Global Mods
Posts: 11,043
Joined: 12-August 19
Level 500 (Ponyslayer)


Good stuff. Added this to the userscript index.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Oct 3 2023, 15:01
Post #3
nasu



さき★すかん
********
Group: Gold Star Club
Posts: 2,670
Joined: 13-June 16
Level 411 (Godslayer)


You may want to consider a delay between requests otherwise you will hit rate limits for larger posts.

Suggestion: sort list after getting all results so tags left to vote are at the top/bottom instead of spread throughout the post
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Oct 3 2023, 15:10
Post #4
-terry-



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


QUOTE(nasu @ Oct 3 2023, 15:01) *

You may want to consider a delay between requests otherwise you will hit rate limits for larger posts.

don't think its needed, tried it in quick succession on 30+ galleries 10x in a row and no problems.

QUOTE(nasu @ Oct 3 2023, 15:01) *

Suggestion: sort list after getting all results so tags left to vote are at the top/bottom instead of spread throughout the post

I thought of that but the problem would be that i am not bothering with trying to figure out where tags start/end, as that would just be likely to introduce false positives, and i aim to keep this as simple as possible. The drawback of moving just the URL's without the accompanying tags to the bottom would mean you no longer know what tags were supposed to be downvoted on that gallery.
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post Oct 3 2023, 16:30
Post #5
romanicyte



Active Poster
*******
Group: Members
Posts: 2,478
Joined: 4-August 18
Level 411 (Dovahkiin)


It can only find tags in that specific format: tags above, every tag with the respective namespace and link below?

Some people use the opposite order and others (like me) just write the namespace once and every tag from that namespace together (example, f:blowjob, nakadashi, paizuri).
Can the scrip recognize these?
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post Oct 3 2023, 16:43
Post #6
-terry-



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


QUOTE(romanicyte @ Oct 3 2023, 16:30) *

It can only find tags in that specific format: tags above, every tag with the respective namespace and link below?

Some people use the opposite order and others (like me) just write the namespace once and every tag from that namespace together (example, f:blowjob, nakadashi, paizuri).
Can the scrip recognize these?

It doesn't look for tags in the post at all, it only checks if there's any downvoted tags left on the gallery itself, and strikes the url through if there's none.

The way you format the post is completely irrelevant as long the URLs are there.
Generally, this should mean that the script can't fuck up.

This post has been edited by -terry-: Oct 3 2023, 16:49
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post Oct 3 2023, 16:49
Post #7
Cipher-kun



Killua Enthusiast
********
Group: Gold Star Club
Posts: 2,991
Joined: 15-December 12
Level 406 (Godslayer)


using something like this will stop it processing already crossed out entries.
CODE
/^\[url=([^\]]+)\]/gm


For that exact regex though it would require that they're each on a starting line. Also you'll need to null check the return before maping as it could return no entries, tho it's not the end of the world if it throws an error there.

Nice idea for a script tho and good work.

This post has been edited by Cipher-kun: Oct 3 2023, 16:52
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Oct 3 2023, 16:53
Post #8
-terry-



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


QUOTE(Cipher-kun @ Oct 3 2023, 16:49) *

using something like this will stop it processing already crossed out entries.
CODE
/^\[url=([^\]]+)\]/gm


Thanks.Itt already did, but this is nicer indeed, should have done it with a regex in the first place.
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post Oct 3 2023, 17:05
Post #9
romanicyte



Active Poster
*******
Group: Members
Posts: 2,478
Joined: 4-August 18
Level 411 (Dovahkiin)


It doesn't appear to me, is it because I use the dark theme?

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

 
post Oct 3 2023, 17:08
Post #10
-terry-



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


Is that the official (Fusion) theme, or some userscript theme? Because it works just fine for me. Check console for errors.
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post Oct 3 2023, 18:32
Post #11
Lady_Slayer



Member of the Bal'masqué
********
Group: Catgirl Camarilla
Posts: 3,733
Joined: 20-December 16
Level 500 (Ponyslayer)


one note from me: It requires a click of "review post" then the option will show up.
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post Oct 3 2023, 18:43
Post #12
-terry-



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


QUOTE(Acetominaphene @ Oct 3 2023, 18:32) *

one note from me: It requires a click of "review post" then the option will show up.

not for me.
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post Oct 3 2023, 19:48
Post #13
romanicyte



Active Poster
*******
Group: Members
Posts: 2,478
Joined: 4-August 18
Level 411 (Dovahkiin)


QUOTE(Acetominaphene @ Oct 3 2023, 13:32) *

one note from me: It requires a click of "review post" then the option will show up.

You got it, when I click "Preview post", "check tags" shows up.
Maybe it has something to do with this script that I (and probably you) use.

Also, a pity the tag check doesn't work on other domains, apparently. :/
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post Oct 3 2023, 20:01
Post #14
Lady_Slayer



Member of the Bal'masqué
********
Group: Catgirl Camarilla
Posts: 3,733
Joined: 20-December 16
Level 500 (Ponyslayer)


QUOTE(romanicyte @ Oct 3 2023, 17:48) *

You got it, when I click "Preview post", "check tags" shows up.
Maybe it has something to do with this script that I (and probably you) use.


oh no.. but at least it's working. It also applies an extra stroke out to posts that's already stroked.
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post Oct 4 2023, 04:18
Post #15
-terry-



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


QUOTE(romanicyte @ Oct 3 2023, 19:48) *

You got it, when I click "Preview post", "check tags" shows up.
Maybe it has something to do with this script that I (and probably you) use.

Also, a pity the tag check doesn't work on other domains, apparently. :/

I'm not sure if the script does much on the forum really, does it work normally with other scripts disabled?
Else all i can say is it works as expected for me and another tester on Firefox + Violentmonkey.
Also not sure what u mean by other domains? On the forum all links are e-hentai anyway, but cross origin requests should work with the way the script works.



QUOTE(Acetominaphene @ Oct 3 2023, 20:01) *

oh no.. but at least it's working. It also applies an extra stroke out to posts that's already stroked.

That should only happen on posts where you already striked through more than just URLs, like the tags themselves, if you let the script do it on a new post, it will not do that.
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post Oct 14 2023, 16:28
Post #16
-terry-



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


updoot:
- added a different version, use that if you don't have access to some content
- changed the script so it (should) only run when editing a post

if it happens to not run for you anymore, change
CODE
// @match       https://forums.e-hentai.org/index.php?act=post&do=edit_post*
back to
CODE
// @match       https://forums.e-hentai.org/index.php


This post has been edited by -terry-: Oct 14 2023, 17:16
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post Oct 14 2023, 17:20
Post #17
romanicyte



Active Poster
*******
Group: Members
Posts: 2,478
Joined: 4-August 18
Level 411 (Dovahkiin)


Awesome work, and it fixed the problem I and Acetominaphene were having. Well, at least for me it was fixed. (IMG:[invalid] style_emoticons/default/tongue.gif)
User is online!Profile CardPM
Go to the top of the page
+Quote Post

 
post Nov 4 2023, 00:43
Post #18
Feftak



Regular Poster
*****
Group: Members
Posts: 549
Joined: 1-August 21
Level 269 (Lord)


This script seems to not work on Ai Generated galleries (IMG:[invalid] style_emoticons/default/huh.gif)

example:
f:futanari
https://e-hentai.org/g/2725503/230515ec37/
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 4 2023, 08:19
Post #19
-terry-



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


QUOTE(Feftak @ Nov 4 2023, 00:43) *

This script seems to not work on Ai Generated galleries (IMG:[invalid] style_emoticons/default/huh.gif)

example:
f:futanari
https://e-hentai.org/g/2725503/230515ec37/

The script doesn't look at any text you wrote above the links, but only the tags you actually downvoted on the gallery, so if you have anything else currently downvoted that has not been killed, dotted tags included, it will not strike it through.

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

 
post Mar 18 2024, 02:14
Post #20
-terry-



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


finally got around to update this

some things that changed:
- striked through urls are now automatically formatted to the bottom of their 'group'
- optional delay (uncomment line 29 and 49 to enable)
- status text, this will tell you what the script is currently doing, any errors, and some information like how many URLs have been striked through and how many are remaining.

This post has been edited by -terry-: Mar 18 2024, 02:25
User is online!Profile CardPM
Go to the top of the page
+Quote Post


2 Pages V  1 2 >
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 - 19:44