6 Pages V < 1 2 3 4 > »   
Reply to this topicStart new topic
> Userscript index, For non-HV scripts

 
post Apr 20 2018, 03:47
Post #21
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Global Mods
Posts: 10,025
Joined: 24-March 12
Level 500 (Godslayer)


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.
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Mar 20 2019, 01:35
Post #22
svines85



doesn't care unless provoked
***********
Group: Gold Star Club
Posts: 18,413
Joined: 8-May 12
Level 128 (Lord)


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=204949

Any possibility to get it working again?


--------------------


Please consider supporting my bounties :)
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Mar 20 2019, 06:31
Post #23
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Global Mods
Posts: 10,025
Joined: 24-March 12
Level 500 (Godslayer)


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=204949

Any 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 smile.gif ). 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.
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Mar 20 2019, 10:51
Post #24
svines85



doesn't care unless provoked
***********
Group: Gold Star Club
Posts: 18,413
Joined: 8-May 12
Level 128 (Lord)


QUOTE(blue penguin @ Mar 19 2019, 17:31) *




That'd be awesome, appreciate it, whenever you can get to it would be great smile.gif


--------------------


Please consider supporting my bounties :)
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Mar 20 2019, 15:28
Post #25
Taylia



Newcomer
*
Group: Gold Star Club
Posts: 30
Joined: 8-March 16
Level 260 (Lord)


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) *

Unread gallery highlighter - by FabulousCupcake

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
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Mar 20 2019, 23:23
Post #26
FabulousCupcake



Casual Poster
****
Group: Gold Star Club
Posts: 430
Joined: 15-April 14
Level 420 (Godslayer)


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=5377802

It 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


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

 
post Mar 21 2019, 09:21
Post #27
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Global Mods
Posts: 10,025
Joined: 24-March 12
Level 500 (Godslayer)


^ 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 smile.gif .


--------------------
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.
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Mar 23 2019, 03:03
Post #28
hzqr



Savagely Still
********
Group: Gold Star Club
Posts: 4,671
Joined: 14-May 09
Level 453 (Dovahkiin)


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
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Mar 23 2019, 03:26
Post #29
Maximum_Joe



Legendary Poster
***********
Group: Gold Star Club
Posts: 24,074
Joined: 17-April 11
Level 500 (Dovahkiin)


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.
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Apr 8 2019, 13:26
Post #30
Insania



The Irregular
*******
Group: Gold Star Club
Posts: 1,473
Joined: 22-October 10
Level 454 (Godslayer)


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
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Apr 27 2019, 07:23
Post #31
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Global Mods
Posts: 10,025
Joined: 24-March 12
Level 500 (Godslayer)


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.
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Apr 28 2019, 18:12
Post #32
Taylia



Newcomer
*
Group: Gold Star Club
Posts: 30
Joined: 8-March 16
Level 260 (Lord)


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:

Attached File  eh_tally_marks.user.js.txt ( 5.38k ) Number of downloads: 75


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 smile.gif )

EDIT:
Changelog:
2019.04.29.01:
  • should work in GM 4


This post has been edited by Taylia: Apr 29 2019, 05:28
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Apr 29 2019, 02:10
Post #33
Shank



Roll for Initiative
*********
Group: Global Mods
Posts: 5,467
Joined: 20-May 12
Level 500 (Ponyslayer)


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 smile.gif )



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
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Apr 29 2019, 05:29
Post #34
Taylia



Newcomer
*
Group: Gold Star Club
Posts: 30
Joined: 8-March 16
Level 260 (Lord)


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 smile.gif

This post has been edited by Taylia: Apr 29 2019, 05:30
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post Apr 29 2019, 07:32
Post #35
Shank



Roll for Initiative
*********
Group: Global Mods
Posts: 5,467
Joined: 20-May 12
Level 500 (Ponyslayer)


QUOTE(Taylia @ Apr 28 2019, 22:29) *

Thanks! Good feedback. New version up smile.gif



Works like a charm, and super useful smile.gif
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post May 8 2019, 21:51
Post #36
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Global Mods
Posts: 10,025
Joined: 24-March 12
Level 500 (Godslayer)


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.
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post May 23 2019, 02:10
Post #37
Someguywith



Astolfo~
*********
Group: Gold Star Club
Posts: 7,427
Joined: 28-September 15
Level 395 (Godslayer)


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


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

 
post May 23 2019, 07:33
Post #38
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Global Mods
Posts: 10,025
Joined: 24-March 12
Level 500 (Godslayer)


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.
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post May 26 2019, 23:03
Post #39
nawrawrawr



Lurker
Group: Gold Star Club
Posts: 2
Joined: 6-June 10
Level 82 (Hero)


(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
User is offlineProfile CardPM
Report PostGo to the top of the page
+Quote Post

 
post May 27 2019, 02:40
Post #40
Someguywith



Astolfo~
*********
Group: Gold Star Club
Posts: 7,427
Joined: 28-September 15
Level 395 (Godslayer)


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)


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


6 Pages V < 1 2 3 4 > » 
Fast ReplyReply to this topicStart new topic
1 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
1 Members: k999k99

 


Lo-Fi Version Time is now: 27th September 2022 - 17:53