Welcome Guest ( Log In | Register )

3 Pages V  1 2 3 >  
Reply to this topicStart new topic
> [Script] EH Gallery Quick Favourite, No more popups, just hover and click

 
post Jun 1 2016, 16:06
Post #1
FabulousCupcake



Casual Poster
****
Group: Gold Star Club
Posts: 474
Joined: 15-April 14
Level 436 (Dovahkiin)


.
EH Gallery Quick Favourite
v2.2.0


Description
Various improvements to the [Add to Favourites] button so you can favourite with a click instead of dealing with popups.
Also adds keyboard shortcuts, initiated with Shift+F.

How to use:
Hover on the [Add to Favourites] button area to expand it, and click on a Favourite category.
Press Shift+F to initiate quick favouriting with hotkeys.



Download
Attached File  ehg_quickfav_v2.2.0f.user.js.txt ( 23.66k ) Number of downloads: 20142
Attached File  ehg_quickfav_v2.2.0.user.js.txt ( 23.87k ) Number of downloads: 111424
Attached File  ehg_quickfav_v2.1.0.user.js.txt ( 22.3k ) Number of downloads: 154
Attached File  ehg_quickfav_v2.0.3.user.js.txt ( 19.31k ) Number of downloads: 356
Attached File  ehg_quickfav_v2.0.2.user.js.txt ( 19.27k ) Number of downloads: 243
Attached File  ehg_quickfav_v2.0.1.user.js.txt ( 19.28k ) Number of downloads: 224
Attached File  ehg_quickfav_v2.0.user.js.txt ( 19.28k ) Number of downloads: 139

Attached File  ehg_quickfav.user.js.txt ( 8.06k ) Number of downloads: 184



Changelog
v2.2.0f
- Fixed Script not working in Firefox due to Greasemonkey 4 API changes.
-» ⚠️ Use this only if v2.2.0 is not working

v2.2.0
- Added Background Favourites Label Fetching!
-» This occurs when either of these 3 conditions are fulfilled:
--» No labels are stored (e.g. during first run)
--» Last update was 1 week ago
--» Favourite label loaded in the page ≠ the one stored
- Fixed Hotkey not working with 0
- Fixed Hotkey hint showing for Add instead of Remove
- Removed Timeout handling

— v2.1.0 —
- Added Hotkeys / Shortcut support!
-» Initiate favouriting with Shift+F
-» Then add the gallery to favourites with 0-9
-» Or remove from favourites with -

— v2.0 —
- Added Favourite notes support!
-» Read/write/delete the notes directly from gallery page
-» Retain gallery notes when changing favourite category
- Fixed UI colors in norway
- Fixed `remove from favourites` as `undefined`
- Fixed @include norway popup
- Fixed curFavID() in norway not working due to different image servers. (v2.0.1)
- Fixed Broken regexp pattern matching for galleries with 1 million ID value or above (v2.0.2)
- Fixed @include new https e-hentai.org gallery (v2.0.3)
- Fixed new https e-hentai gallery using exh color stylesheet (v2.0.3)

— v1.0 —
- Initial version



Preview
v2.1 Hotkey cheatsheet preview:
Attached Image

v2.0 Preview:
Attached Image
A 45 seconds demonstration gif

v1.0 Preview:
[r.kyaa.sg] https://r.kyaa.sg/rwiant.gif

This post has been edited by FabulousCupcake: Sep 24 2023, 02:01
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 1 2016, 16:34
Post #2
version365



Incest Lover
*****
Group: Members
Posts: 568
Joined: 4-October 12
Level 175 (Destined)


QUOTE(FabulousCupcake @ Jun 1 2016, 19:36) *

Warning: Quick Favving will remove existing favourite notes!

This applies when changing favourite category for a gallery, and not all other previously favourited galleries.. Am I right?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 1 2016, 16:39
Post #3
FabulousCupcake



Casual Poster
****
Group: Gold Star Club
Posts: 474
Joined: 15-April 14
Level 436 (Dovahkiin)


QUOTE(version365 @ Jun 1 2016, 16:34) *

This applies when changing favourite category for a gallery, and not all other previously favourited galleries.. Am I right?


Correct; simply loading the page won't remove the notes.
It gets removed when you change the favourite category.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 1 2016, 17:33
Post #4
version365



Incest Lover
*****
Group: Members
Posts: 568
Joined: 4-October 12
Level 175 (Destined)


Nice script.. working as intended.. thanks..

It really helps when opening another window may cause lag in the browser..
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 1 2016, 19:07
Post #5
blue penguin



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


Great script. I'm organising my favourites these days, had you posted this a week earlier it would have saved me a thousand clicks (IMG:[invalid] style_emoticons/default/smile.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 1 2016, 20:00
Post #6
Simpleton8



Casual Poster
****
Group: Members
Posts: 336
Joined: 2-November 15
Level 264 (Godslayer)


Looks great. Thanks. I'll probably edit it so that only 1 favorite category is shown. Currently only using the favorite to track galleries that I need to look into/download. 2 Small things:

1) Match background color in norway
2) Remove favorite -> value becomes undefined

This post has been edited by blue penguin: Jun 2 2016, 15:54
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 2 2016, 14:09
Post #7
FabulousCupcake



Casual Poster
****
Group: Gold Star Club
Posts: 474
Joined: 15-April 14
Level 436 (Dovahkiin)


QUOTE(Simpleton8 @ Jun 1 2016, 20:00) *

Looks great. Thanks. I'll probably edit it so that only 1 favorite category is shown. Currently only using the favorite to track galleries that I need to look into/download. 2 Small things:

1) Match background color in norway

2) Remove favorite -> value becomes undefined

Both issues should be fixed now.
Additionally added favourite notes support with it (IMG:[invalid] style_emoticons/default/happy.gif)
The codebase looks uglier with it now (IMG:[invalid] style_emoticons/default/heh.gif)

This post has been edited by blue penguin: Jun 2 2016, 15:54
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 5 2016, 10:09
Post #8
version365



Incest Lover
*****
Group: Members
Posts: 568
Joined: 4-October 12
Level 175 (Destined)


I think there should be a script like this for inline expunge/rename petitioning..
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 5 2016, 11:16
Post #9
Pillowgirl



Grammatically Incorrect (☞゚∀゚)☞
*********
Group: Gold Star Club
Posts: 5,136
Joined: 2-December 12
Level 479 (Godslayer)


Can't see the webm so i can't decide if i want to try this.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 5 2016, 15:36
Post #10
FabulousCupcake



Casual Poster
****
Group: Gold Star Club
Posts: 474
Joined: 15-April 14
Level 436 (Dovahkiin)


QUOTE(Pillowgirl @ Jun 5 2016, 11:16) *

Can't see the webm so i can't decide if i want to try this.


Updated the main post with a gif version.
I'm curious on why you can't see the webm file though, is vp8/webm not common enough yet?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 5 2016, 16:15
Post #11
Pillowgirl



Grammatically Incorrect (☞゚∀゚)☞
*********
Group: Gold Star Club
Posts: 5,136
Joined: 2-December 12
Level 479 (Godslayer)


The host was dead or the link got nuked for the webm.

I didn't try the gif because it's a waste of bandwidth compared to a webm.



I can see webm just fine, i just worded it wrong.

Put the webm back broski, i don't like gifs as i just cancelled loading the gif in your post (didn't like you putting it in img tags).

What is the point in putting up a webm and a gif?

Seeing as how now there is no webm link and you're pushing a gif into my face by force instead of linking it like previously, i'm having serious doubts about your hidden agenda involving the gif file standard.



PS : don't take my cuntiness personally, i just don't like gif's if there's a webm alternative and coming to this thread left me with a sour taste in my mouth...but then again i'm also eating peanut butter right now and that first taste of tart oil on your tongue really scrunches up my face

This post has been edited by Pillowgirl: Jun 5 2016, 16:17
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 5 2016, 16:26
Post #12
Simpleton8



Casual Poster
****
Group: Members
Posts: 336
Joined: 2-November 15
Level 264 (Godslayer)


Another bug?: When I click on the gallery in the favorites.php and hover over the favorite, there is no "Remove from favorites" option. I had to change it to another/same favorite before the option shows up.

QUOTE(Pillowgirl @ Jun 5 2016, 16:15) *

The host was dead or the link got nuked for the webm.

I didn't try the gif because it's a waste of bandwidth compared to a webm.
I can see webm just fine, i just worded it wrong.

Put the webm back broski, i don't like gifs as i just cancelled loading the gif in your post (didn't like you putting it in img tags).

What is the point in putting up a webm and a gif?

Seeing as how now there is no webm link and you're pushing a gif into my face by force instead of linking it like previously, i'm having serious doubts about your hidden agenda involving the gif file standard.
PS : don't take my cuntiness personally, i just don't like gif's if there's a webm alternative and coming to this thread left me with a sour taste in my mouth...but then again i'm also eating peanut butter right now and that first taste of tart oil on your tongue really scrunches up my face


Are you on mobile? For most of us (with reasonable network speed/bandwidth), it doesn't really matter.

This post has been edited by Simpleton8: Jun 5 2016, 16:27
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 5 2016, 17:08
Post #13
FabulousCupcake



Casual Poster
****
Group: Gold Star Club
Posts: 474
Joined: 15-April 14
Level 436 (Dovahkiin)


Updated the preview again; screw the 45 seconds gif/webm; a 2 frames gif should be enough (IMG:[invalid] style_emoticons/default/heh.gif)

QUOTE(Simpleton8 @ Jun 5 2016, 16:26) *

Another bug?: When I click on the gallery in the favorites.php and hover over the favorite, there is no "Remove from favorites" option. I had to change it to another/same favorite before the option shows up.


Seems to happen only in norway; checking this.
Fixed; it was caused by a hardcoded ehgt.org in the script that norway differently used.

This post has been edited by FabulousCupcake: Jun 5 2016, 17:38
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 5 2016, 18:32
Post #14
Simpleton8



Casual Poster
****
Group: Members
Posts: 336
Joined: 2-November 15
Level 264 (Godslayer)


Works now. Thanks. (IMG:[invalid] style_emoticons/default/biggrin.gif) . I also changed the following to just {i} from {i+1}, so that my favorites can be ordered from 0 to 9.

if ( !label ) label = `Favorites ${i}`;

I am guessing there is no easy way to have it always display the personalized labels (e.g., Best, 3D, etc.) instead of generic labels like Favorites 1?

This post has been edited by Simpleton8: Jun 5 2016, 18:38
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 5 2016, 20:41
Post #15
FabulousCupcake



Casual Poster
****
Group: Gold Star Club
Posts: 474
Joined: 15-April 14
Level 436 (Dovahkiin)


QUOTE(Simpleton8 @ Jun 5 2016, 18:32) *

Works now. Thanks. (IMG:[invalid] style_emoticons/default/biggrin.gif) . I also changed the following to just {i} from {i+1}, so that my favorites can be ordered from 0 to 9.

if ( !label ) label = `Favorites ${i}`;

I am guessing there is no easy way to have it always display the personalized labels (e.g., Best, 3D, etc.) instead of generic labels like Favorites 1?


Taken from the main post protip:
QUOTE

» Click the actual favourite category to open the original default popup.
»» You should open this popup at least once to load your favourite category labels.


And the notes section:
QUOTE

Open the favourite popup to load the labels!


I guess I shouldn't make this a protip.
Maybe an alert message to open the popup instead?

This post has been edited by FabulousCupcake: Jun 5 2016, 20:42
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Jun 6 2016, 04:07
Post #16
Simpleton8



Casual Poster
****
Group: Members
Posts: 336
Joined: 2-November 15
Level 264 (Godslayer)


QUOTE(FabulousCupcake @ Jun 5 2016, 20:41) *

Taken from the main post protip:
And the notes section:
I guess I shouldn't make this a protip.
Maybe an alert message to open the popup instead?


I prefer no alert as I have reset my favorite labels to default. Just surprising that it can't retrieve the labels at the gallery page.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 26 2016, 23:19
Post #17
kusanagi177



Casual Poster
***
Group: Members
Posts: 153
Joined: 26-October 11
Level 79 (Expert)


It doesn't seem to work any more for me
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 27 2016, 13:31
Post #18
Ryo75



Regular Poster
*****
Group: Members
Posts: 520
Joined: 25-March 12
Level 465 (Dovahkiin)


It's not working here as well.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 27 2016, 23:40
Post #19
blue penguin



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


Hm... I could not make it work either, although I didn't try very hard (IMG:[invalid] style_emoticons/default/smile.gif) .

For some time I have been considering pinning the most useful scripts at the top of the Help Desk subforum, and your script does make a great one for such thing. If you wanna look into making it a little more robust i'll try to market the script a little (by pinning it and maybe i'll start a script index thread for non-HV scripts).

I'm on FF 50, which is do suspect is the cause (but hadn't not enough time investigate decently, sorry).
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 28 2016, 00:49
Post #20
FabulousCupcake



Casual Poster
****
Group: Gold Star Club
Posts: 474
Joined: 15-April 14
Level 436 (Dovahkiin)


Issue fixed! Thanks for the reports (IMG:[invalid] style_emoticons/default/happy.gif)

The issue occurred because the regexp pattern used to get the gallery ID doesn't work anymore.
It was fixed to 6 digits of number and we just hit the 1 millionth gallery ID in EH.

Congratulations! (ノ◕ヮ◕)ノ*:・゚✧

———

QUOTE(blue penguin @ Nov 27 2016, 22:40) *

Hm... I could not make it work either, although I didn't try very hard (IMG:[invalid] style_emoticons/default/smile.gif) .

Don't feel bad, It's quite obscure.
I'm surprised I can find it so quickly myself (IMG:[invalid] style_emoticons/default/happy.gif)

QUOTE(blue penguin @ Nov 27 2016, 22:40) *

For some time I have been considering pinning the most useful scripts at the top of the Help Desk subforum, and your script does make a great one for such thing. If you wanna look into making it a little more robust i'll try to market the script a little (by pinning it and maybe i'll start a script index thread for non-HV scripts).

I'm on FF 50, which is do suspect is the cause (but hadn't not enough time investigate decently, sorry).

I appreciate the thoughts!
I am definitely open for any inputs on improving the script. e.g. to make it more robust as you said.
The script seems to be working fine for myself (at least for my personal use) and I certainly did my best to make it as bug-free as possible.

This post has been edited by FabulousCupcake: Nov 28 2016, 00:56
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


3 Pages V  1 2 3 >
Reply to this topicStart new topic
4 User(s) are reading this topic (4 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 25th April 2024 - 23:47