Loading. Please Wait...
|
|
|
[Userscript] Check Tag Post, Strike through any cleaned up galleries in your tag post |
|
Oct 3 2023, 14:55
|
Agoraphobia
Group: Global Mods
Posts: 11,043
Joined: 12-August 19
|
Good stuff. Added this to the userscript index.
|
|
|
Oct 3 2023, 15:01
|
nasu
Group: Gold Star Club
Posts: 2,670
Joined: 13-June 16
|
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
|
|
|
|
|
|
Oct 3 2023, 15:10
|
-terry-
Group: Gold Star Club
Posts: 1,275
Joined: 9-August 19
|
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.
|
|
|
|
|
|
Oct 3 2023, 16:30
|
romanicyte
Group: Members
Posts: 2,478
Joined: 4-August 18
|
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?
|
|
|
|
|
|
Oct 3 2023, 16:43
|
-terry-
Group: Gold Star Club
Posts: 1,275
Joined: 9-August 19
|
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
|
|
|
|
|
|
Oct 3 2023, 16:49
|
Cipher-kun
Group: Gold Star Club
Posts: 2,991
Joined: 15-December 12
|
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
|
|
|
Oct 3 2023, 16:53
|
-terry-
Group: Gold Star Club
Posts: 1,275
Joined: 9-August 19
|
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.
|
|
|
Oct 3 2023, 17:05
|
romanicyte
Group: Members
Posts: 2,478
Joined: 4-August 18
|
It doesn't appear to me, is it because I use the dark theme?
|
|
|
Oct 3 2023, 17:08
|
-terry-
Group: Gold Star Club
Posts: 1,275
Joined: 9-August 19
|
Is that the official (Fusion) theme, or some userscript theme? Because it works just fine for me. Check console for errors.
|
|
|
Oct 3 2023, 18:32
|
Lady_Slayer
Group: Catgirl Camarilla
Posts: 3,733
Joined: 20-December 16
|
one note from me: It requires a click of "review post" then the option will show up.
|
|
|
Oct 3 2023, 18:43
|
-terry-
Group: Gold Star Club
Posts: 1,275
Joined: 9-August 19
|
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.
|
|
|
Oct 3 2023, 19:48
|
romanicyte
Group: Members
Posts: 2,478
Joined: 4-August 18
|
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. :/
|
|
|
Oct 3 2023, 20:01
|
Lady_Slayer
Group: Catgirl Camarilla
Posts: 3,733
Joined: 20-December 16
|
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.
|
|
|
|
|
|
Oct 4 2023, 04:18
|
-terry-
Group: Gold Star Club
Posts: 1,275
Joined: 9-August 19
|
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.
|
|
|
|
|
|
Oct 14 2023, 16:28
|
-terry-
Group: Gold Star Club
Posts: 1,275
Joined: 9-August 19
|
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
|
|
|
Oct 14 2023, 17:20
|
romanicyte
Group: Members
Posts: 2,478
Joined: 4-August 18
|
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)
|
|
|
Nov 4 2023, 08:19
|
-terry-
Group: Gold Star Club
Posts: 1,275
Joined: 9-August 19
|
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.
|
|
|
|
|
|
Mar 18 2024, 02:14
|
-terry-
Group: Gold Star Club
Posts: 1,275
Joined: 9-August 19
|
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
|
|
|
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
|
|
|
|
|
|
|