|
|
|
Userscript index, For non-HV scripts |
|
Apr 20 2018, 03:47
|
blue penguin
Group: Global Mods
Posts: 10,025
Joined: 24-March 12
|
QUOTE(crusher330 @ Apr 19 2018, 05:57) PENGUIN EDIT: Cannot be here on EH
A decent script alright, and it certainly has its place on github or similar but should not be listed in this thread. A script that under some condition redirects someone to a domain that is not under EH control is a security risk, and endorsing it here on EH would make it an even bigger security risk. i.e. someone may think that he should not care about the cross-domain redirection if the script is advertised in this thread.
--------------------
QUOTE(blue penguin @ Jun 21 2021, 17:24) For 10 years of my life I have refused to add if-else blocks in order to support internet explorer idiocy, am not going to start doing it now in order to support google chrome's idiocy. Sorry folks. As harsh as the advice sounds my advice will be: use a browser that follows IETF standards.
|
|
|
|
|
|
Mar 20 2019, 01:35
|
svines85
Group: Gold Star Club
Posts: 18,413
Joined: 8-May 12
|
With the recent update the script I've been using that puts the little language flag near the gallery names has quit working... /index.php?showtopic=204949Any possibility to get it working again?
--------------------
Please consider supporting my bounties :)
|
|
|
|
|
|
Mar 20 2019, 06:31
|
blue penguin
Group: Global Mods
Posts: 10,025
Joined: 24-March 12
|
QUOTE(svines85 @ Mar 19 2019, 17:35) With the recent update the script I've been using that puts the little language flag near the gallery names has quit working... /index.php?showtopic=204949Any possibility to get it working again? I probably need too got through every script and check whether it is working (probably none of them are ). Then give a list of what I have the time to fix myself and what I'll need help with. But this will happen slowly, sorry, RL's being a bitch: (1) too much shit at work (2) I need to move house, (3) sick family; all at once. If anyone wants to help I'll definitely accept. EDIT: Check #1: The Quick Favourite script works Check #2: Gallery Search Mode works Check #3 Fixed Tagfield works This post has been edited by blue penguin: Mar 20 2019, 07:49
--------------------
QUOTE(blue penguin @ Jun 21 2021, 17:24) For 10 years of my life I have refused to add if-else blocks in order to support internet explorer idiocy, am not going to start doing it now in order to support google chrome's idiocy. Sorry folks. As harsh as the advice sounds my advice will be: use a browser that follows IETF standards.
|
|
|
|
|
|
Mar 20 2019, 10:51
|
svines85
Group: Gold Star Club
Posts: 18,413
Joined: 8-May 12
|
QUOTE(blue penguin @ Mar 19 2019, 17:31)
That'd be awesome, appreciate it, whenever you can get to it would be great
--------------------
Please consider supporting my bounties :)
|
|
|
|
|
|
Mar 20 2019, 15:28
|
Taylia
Newcomer
Group: Gold Star Club
Posts: 30
Joined: 8-March 16
|
The example script from the API topic in the wiki is Gallery Filecount which needs new selectors to work in the new gallery. On the flip side, it's not necessary in compact or extended view? QUOTE(blue penguin @ Nov 29 2016, 06:31) Has been marked as deprecated by the thread creator. All it's features are now built in. QUOTE(blue penguin @ Nov 29 2016, 06:31) Tag flagging has changed so the .it4r class isn't available anymore, that makes this snippet not work as intended. It might be difficult to get this working on minimal? QUOTE(blue penguin @ Nov 29 2016, 06:31) I've uploaded an updated version that should work for all four gallery layouts over in Extiandr's thread. QUOTE(blue penguin @ Nov 29 2016, 06:31) Works for me on most pages, seems to be broken on favorites? And I've just posted Filter PMs - by Taylia Might be worth mentioning ViolentMonkey as an alternative to TamperMonkey and GreaseMonkey? This post has been edited by Taylia: Mar 20 2019, 15:39
|
|
|
|
|
|
Mar 20 2019, 23:23
|
FabulousCupcake
Group: Gold Star Club
Posts: 430
Joined: 15-April 14
|
QUOTE(Taylia @ Mar 20 2019, 08:28) Tag flagging has changed so the .it4r class isn't available anymore, that makes this snippet not work as intended. It might be difficult to get this working on minimal?
The tag flag information is completely gone in Minimal, so you'll have to use Compact. Additionally, the rating and tags are no longer under the same parent, so it will be impossible to rewrite the css snippet in pure css. Fortunately it's quite easy to mark all items under the same logic (rows with flagged tag and not rated) CODE const els = document.querySelectorAll(".ir[class='ir']") els.forEach(el => { const hasFlaggedTag = !!el.parentElement.nextElementSibling.querySelector(".gt[style]"); if (!hasFlaggedTag) return; el.parentElement.parentElement.classList.add("marked"); });
--- I also made an userstyle to imitate the old layout (which is basically the current Minimal with tag flags). /index.php?s=&am...t&p=5377802It requires Compact layout however, since the current Minimal layout has no tag flag information. This post has been edited by FabulousCupcake: Mar 20 2019, 23:27
--------------------
|
|
|
|
|
|
Mar 21 2019, 09:21
|
blue penguin
Group: Global Mods
Posts: 10,025
Joined: 24-March 12
|
^ Thanks guys I cam here just to add a link to the filter PMs script but you already did it. That said, I'll leave the legacy CSS link here. I'll clean this thread up soon, I promise .
--------------------
QUOTE(blue penguin @ Jun 21 2021, 17:24) For 10 years of my life I have refused to add if-else blocks in order to support internet explorer idiocy, am not going to start doing it now in order to support google chrome's idiocy. Sorry folks. As harsh as the advice sounds my advice will be: use a browser that follows IETF standards.
|
|
|
Mar 23 2019, 03:03
|
hzqr
Group: Gold Star Club
Posts: 4,671
Joined: 14-May 09
|
Remove the highlighter (the vanilla one at least) from the list please, it's not maintained anymore and will actively fuck with the layout if enabled
|
|
|
Mar 23 2019, 03:26
|
Maximum_Joe
Group: Gold Star Club
Posts: 24,074
Joined: 17-April 11
|
QUOTE(hzqr @ Mar 22 2019, 15:03) Remove the highlighter (the vanilla one at least) from the list please, it's not maintained anymore and will actively fuck with the layout if enabled
Apparently replaced by [ sleazyfork.org] https://sleazyfork.org/en/scripts/380614-e-...results-by-tags
--------------------
Try to fill your life with good things.
|
|
|
Apr 8 2019, 13:26
|
Insania
Group: Gold Star Club
Posts: 1,473
Joined: 22-October 10
|
I am not sure if this script exist. Anyways, I would like a script that renames my zip files with Chinese/Japanese titles to English based on the galleries in EH.
This post has been edited by Insania: Apr 8 2019, 13:26
|
|
|
|
|
|
Apr 27 2019, 07:23
|
blue penguin
Group: Global Mods
Posts: 10,025
Joined: 24-March 12
|
QUOTE(Insania @ Apr 8 2019, 06:26) I am not sure if this script exist. Anyways, I would like a script that renames my zip files with Chinese/Japanese titles to English based on the galleries in EH. You will want a real script for that. Dealing with local files from the browser is too painful. Also, one more TODO (when i get the time): include this somewhere in this thread's OP: /index.php?showtopic=226623
--------------------
QUOTE(blue penguin @ Jun 21 2021, 17:24) For 10 years of my life I have refused to add if-else blocks in order to support internet explorer idiocy, am not going to start doing it now in order to support google chrome's idiocy. Sorry folks. As harsh as the advice sounds my advice will be: use a browser that follows IETF standards.
|
|
|
|
|
|
Apr 28 2019, 18:12
|
Taylia
Newcomer
Group: Gold Star Club
Posts: 30
Joined: 8-March 16
|
QUOTE(Insania @ Apr 8 2019, 15:26) I am not sure if this script exist. Anyways, I would like a script that renames my zip files with Chinese/Japanese titles to English based on the galleries in EH.
It should be possible to write something that changed the name of a gallery as you download it. Writing something that modifies a file on your hdd from inside the browser is against ALL the browser security policies. Working the other way, a desktop application that matches a zip on your hdd to a gallery online is possible but difficult. The file search will find galleries that include an image from your zip. If the online version is in *any* way different (different scan, different corrections, different translator, different edit, passed through a different image software along the way) then you won't get a match. Contrariwise, in some cases you may get multiple matches for, say, different translations with the exact same cover. Unrelatedly, someone over in the News forum asked for a script that could help them keep track of the last gallery they looked at and I can't add attachments over there. So, here:
eh_tally_marks.user.js.txt ( 5.38k )
Number of downloads: 75Hover over the left column in Minimal/Compact/Extended view to get a tray of icons, click the icon to set the time mark. Click it again to clear the time mark. Time marks are remembered in the script so they show whichever url you're using. Should work in any gallery list page except thumbnail view. The tray expands to the left, which is empty screen real estate for me, speak up if you would find the script useful but the tray extends off the screen for you? (or you need more marks, or less marks, or different colors, ... any feedback in general ) EDIT: Changelog:2019.04.29.01: This post has been edited by Taylia: Apr 29 2019, 05:28
|
|
|
|
|
|
Apr 29 2019, 02:10
|
Shank
Group: Global Mods
Posts: 5,467
Joined: 20-May 12
|
QUOTE(Taylia @ Apr 28 2019, 11:12) It should be possible to write something that changed the name of a gallery as you download it. Writing something that modifies a file on your hdd from inside the browser is against ALL the browser security policies. Working the other way, a desktop application that matches a zip on your hdd to a gallery online is possible but difficult. The file search will find galleries that include an image from your zip. If the online version is in *any* way different (different scan, different corrections, different translator, different edit, passed through a different image software along the way) then you won't get a match. Contrariwise, in some cases you may get multiple matches for, say, different translations with the exact same cover. Unrelatedly, someone over in the News forum asked for a script that could help them keep track of the last gallery they looked at and I can't add attachments over there. So, here: [attachmentid=130192] Hover over the left column in Minimal/Compact/Extended view to get a tray of icons, click the icon to set the time mark. Click it again to clear the time mark. Time marks are remembered in the script so they show whichever url you're using. Should work in any gallery list page except thumbnail view. The tray expands to the left, which is empty screen real estate for me, speak up if you would find the script useful but the tray extends off the screen for you? (or you need more marks, or less marks, or different colors, ... any feedback in general ) Just tried it, but it didn't work for me (firefox). Here's the error in the console: CODE Script error: ReferenceError: "GM_getValue is not defined"
applyTallies user-script:https://forums.ehentaihip.com/index.php?showuser=3007329/EH Tally Marks:631 userScript user-script:https://forums.ehentaihip.com/index.php?showuser=3007329/EH Tally Marks:680 userScript user-script:https://forums.ehentaihip.com/index.php?showuser=3007329/EH Tally Marks:666 scopeWrapper user-script:https://forums.ehentaihip.com/index.php?showuser=3007329/EH Tally Marks:702 <anonymous> user-script:https://forums.ehentaihip.com/index.php?showuser=3007329/EH Tally Marks:496
EH Tally Marks:704:23
<anonymous> user-script:https://forums.ehentaihip.com/index.php?showuser=3007329/EH Tally Marks:704
|
|
|
|
|
|
Apr 29 2019, 05:29
|
Taylia
Newcomer
Group: Gold Star Club
Posts: 30
Joined: 8-March 16
|
QUOTE(ubershank @ Apr 29 2019, 04:10) Just tried it, but it didn't work for me (firefox). Here's the error in the console:[code]Script error: ReferenceError: "GM_getValue is not defined"
Thanks! Good feedback. New version up This post has been edited by Taylia: Apr 29 2019, 05:30
|
|
|
Apr 29 2019, 07:32
|
Shank
Group: Global Mods
Posts: 5,467
Joined: 20-May 12
|
QUOTE(Taylia @ Apr 28 2019, 22:29) Thanks! Good feedback. New version up Works like a charm, and super useful
|
|
|
May 8 2019, 21:51
|
blue penguin
Group: Global Mods
Posts: 10,025
Joined: 24-March 12
|
Awesome script Taylia, thanks.
I will (hopefully) get some time during the weekend and sort this thread out.
--------------------
QUOTE(blue penguin @ Jun 21 2021, 17:24) For 10 years of my life I have refused to add if-else blocks in order to support internet explorer idiocy, am not going to start doing it now in order to support google chrome's idiocy. Sorry folks. As harsh as the advice sounds my advice will be: use a browser that follows IETF standards.
|
|
|
|
|
|
May 23 2019, 02:10
|
Someguywith
Group: Gold Star Club
Posts: 7,427
Joined: 28-September 15
|
I didn't like that you can't sort the bounties, so I fixed that. Can sort on date, name, type, status, reward and uploader Code taken from Stack overflow/ an outdated reward sorter back from the g.e- days. CODE // ==UserScript== // @name Sort Bounties By Reward // @description Sort bounties by reward // @include https://e-hentai.org/bounty.php* // @version 1.0 // @namespace SomeGuyWith, https://forums.ehentaihip.com/index.php?showuser=2725435 // ==/UserScript==
/*** Settings ***/ var hathToCredits = 4032 /*** End of Settings ***/
function getNumerical(txt) { var credits = txt.match(/([0-9, ]+)Credits/i); var hath = txt.match(/([0-9, ]+)Hath/i); var reward = 0; if(credits) { credits = parseInt(credits[1].replace(/[, ]/g, '')) reward += credits } if(hath) { hath = parseInt(hath[1].replace(/[, ]/g, '')) reward += (hath * hathToCredits) } return reward }
const getCellValue = (tr, idx) => { if(idx === 4 ){ return getNumerical(tr.children[idx].innerText) } else{ return tr.children[idx].innerText || tr.children[idx].textContent; } }
const comparer = (idx, asc) => (a, b) => ((v1, v2) => v1 !== '' && v2 !== '' && !isNaN(v1) && !isNaN(v2) ? v1 - v2 : v1.toString().localeCompare(v2) )(getCellValue(asc ? a : b, idx), getCellValue(asc ? b : a, idx));
document.querySelectorAll('th').forEach(th => th.addEventListener('click', (() => { const table = th.closest('table'); Array.from(table.querySelectorAll('tr:nth-child(n+2)')) .sort(comparer(Array.from(th.parentNode.children).indexOf(th), this.asc = !this.asc)) .forEach(tr => table.appendChild(tr) ); }))); This post has been edited by Someguywith: May 23 2019, 03:05
--------------------
|
|
|
|
|
|
May 23 2019, 07:33
|
blue penguin
Group: Global Mods
Posts: 10,025
Joined: 24-March 12
|
Eeeyup, thanks for that. QUOTE(blue penguin @ May 8 2019, 14:51) I will (hopefully) get some time during (some) weekend and sort this thread out. Also: rravens's sciprt
--------------------
QUOTE(blue penguin @ Jun 21 2021, 17:24) For 10 years of my life I have refused to add if-else blocks in order to support internet explorer idiocy, am not going to start doing it now in order to support google chrome's idiocy. Sorry folks. As harsh as the advice sounds my advice will be: use a browser that follows IETF standards.
|
|
|
|
|
|
May 26 2019, 23:03
|
nawrawrawr
Lurker
Group: Gold Star Club
Posts: 2
Joined: 6-June 10
|
(Request) I noticed that sorting search results is not on the 'will never be added' list but I figure its covered by the 'Sorting galleries beyond the default of descending published date[IRC]'.
I want to request a script to allow sorting the search results alphabetically by titles. Preferably for Thumbnail node, if this matters. Is this even possible? My issue with currently 'normal' search results occurs if a search returns several pages worth of results.. There is no good way to identify 'duplicates' or 'translations' as these are most often not sorted in order and hidden behind the other search result pages, outside of view. I also cannot exclude non-translations as not all doujins/mangas have translations. By excluding non-trans you'd miss out on too many. It's a tedious issue for me now after about 9 years on this platform, and I lack the ability to code a solution.
Appreciate the chance to request a script. I hope it's not a bad request.
DL;DR - Sort search results by title - alphabetically - for galleries
This post has been edited by blue penguin: May 27 2019, 06:20
|
|
|
|
|
|
May 27 2019, 02:40
|
Someguywith
Group: Gold Star Club
Posts: 7,427
Joined: 28-September 15
|
QUOTE(nawrawrawr @ May 26 2019, 17:03) (Request) I noticed that sorting search results is not on the 'will never be added' list but I figure its covered by the 'Sorting galleries beyond the default of descending published date[IRC]'.
I want to request a script to allow sorting ex/e-hentai search results alphabetically by titles. Preferably for Thumbnail node, if this matters. Is this even possible? My issue with currently 'normal' search results occurs if a search returns several pages worth of results.. There is no good way to identify 'duplicates' or 'translations' as these are most often not sorted in order and hidden behind the other search result pages, outside of view. I also cannot exclude non-translations as not all doujins/mangas have translations. By excluding non-trans you'd miss out on too many. It's a tedious issue for me now after about 9 years on this platform, and I lack the ability to code a solution.
Appreciate the chance to request a script. I hope it's not a bad request.
DL;DR - Sort search results by title - alphabetically - for ex and e-hentai. Thumbnail mode.
There's a high reason why it's listed as "never be added". If you want to sort every gallary you get you first need to get every gallary. Some tags have well over hunderd thousand gallaries attached to them. So you'd first need to request all thous gallaries, which is already a huge strain on the server. Then you'll need to sort them, sorting a small list is fine, but again. hunderd thousands of results is going to bring any machine to a grinding halt till it's done processing. Something that is possible is to sort just one page of results, the issue is if the translated work is not on the same page it'll not be included next to the raw. But that would just defeat the purpose of what you'd want. (That's atleast my asumption, if anyone who knows more sees this as wrong please feel free to correct me)
--------------------
|
|
|
|
|
|
1 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
|
|
|
|
|