Owyn / HandyImage

browser userscript (extension) which Shows just fullsize Image with hotkeys & without pop-ups on many image-hosting sites
https://greasyfork.org/scripts/109-handy-image
272 stars 58 forks source link

ADD/FIX #529

Closed najushua closed 1 year ago

najushua commented 1 year ago

NSFW - I can't even get to the images, grabbed links from sukebei.nyaa.si

http://imgblaze.net/trgw1dp6t but then redirects to http://pixlev.store/trgw1dp6t http://imgblaze.net/h1cdr but then redirects to http://pixlev.store/h1cdr

NSFW - https://imgfrost.net/hmtezs redirects to http://pixlev.store/hmtezs

Owyn commented 1 year ago

added

shmightworks commented 1 year ago

Thank to that information, I've just made the above into a bookmarklet for now: javascript:(function()%7Bwindow.location %3D "https%3A%2F%2Fpixlev.store" %2B document.location.pathname%3B%7D)()

I'm sure Owyn can just do the same thing in HandyImage to do the same thing.

Owyn commented 1 year ago

@jasonhpchu I don't even know what that code is for 🤔 and why would I add into into HandyImage if HandyImage already shows the image just fine on the pixlev site?

shmightworks commented 1 year ago

@Owyn I'm going to just reply to this thread instead of to both #529 and #530. For the test url: http://imgair.net/n8tzofx41 (which I used a family friendly image) Mine just sits there after the 5 seconds. I'm wondering if it's because of my adblock/popup blockers, that gated out the code to proceed, so HandyImage can't proceed with its thing and so it just sits there. I'm using Chrome, and I have Adblock Plus and Popup Block (strict), plus whatever blocker Chrome has built in.

As to my little code I wrote, it just simply changes the domain of the url to pixlev.store, keeping the rest of the url's path name. So basically I manually redirect it myself. As @najushua points out that's where the source of the image came from, and there doesn't seem to have any of those 5 seconds wait/ads if you point it directly to the pixlev.store domain. (maybe pixmax.store points to the same thing as well?) There are a handful of domains that goes back to pixlev.store, like imgair, imgblaze, etc. I'm tried it on a few of those sites and they all seem to be able to pull the full image there. I figured this would be a more direct way for HandyImage to get to the source of the image, instead of dealing with the 5 seconds and bypass.

najushua commented 1 year ago

The link (http://imgair.net/n8tzofx41) posted by Jasonhpchu I can open and see the image, but the blaze/frost I posted still just sit on the countdown page, if you click continue you get a pop-up ad

If I go directly to the pixlev page I can click continue and get the image, but I still need to click it wont open it automatically

Note: I would post a blaze/frost SFW link but i've never seen the site used anywhere but sukebei.nyaa.si, however; I would say 50% of the file listings there use those two image sites

Owyn commented 1 year ago

As to my little code I wrote, it just simply changes the domain of the url to pixlev.store, keeping the rest of the url's path name. So basically I manually redirect it myself.

That's the weird part since it redirects to pixlev instantly for me even when I turn off my uBlock and adsbypasser lite and try it in a private window

I'm wondering if it's because of my adblock/popup blockers

you could always just turn those off (for a minute) and check

Chrome

I tested both in firefox (my main) and Chrome, both blaze and imgfrost auto-redirect to pixlev instantly 🤔

If it indeed does not redirect instantly for everyone as it seems - I'll add a redirect into HandyImage now, let's hope it won't break things

Owyn commented 1 year ago

If I go directly to the pixlev page I can click continue and get the image, but I still need to click it wont open it automatically

Well that shouldn't happen, are you sure HandyImage even works? does "get the image" mean HandyImage fullsized the image and now you can use hotkeys (TAB\Q\R) etc ?

HandyImage should get the image url instantly from the page script code when you open it, without waiting 5 sec or any clicking - cuz it doesn't look for images on the page for pixlev does the browser console say anything when you need to wait 5 sec and click? (Ctrl+J)

is the url correct? check that it actually got redirected

najushua commented 1 year ago

Just downloaded Firefox, with just ublock and HandyImage (through tampermonkey) it works for all links

On chrome it doesnt show HandyImage even ran (red icon on tampermonkey).

shmightworks commented 1 year ago

one thing to note, I always test this via incognito. I find the site "remembers" stuff. Like if I had clicked through all those buttons, shown ads/popups. I found subsequent clicks to other images will go straight through. Probably something in the cookie.

Owyn commented 1 year ago

On chrome it doesnt show HandyImage even ran (red icon on tampermonkey).

That means it didn't...

Update your HandyImage to the latest version and see if it helps, if it still doesn't help - give the url of the page where it doesn't run and I'll double check here why

shmightworks commented 1 year ago

On chrome it doesnt show HandyImage even ran (red icon on tampermonkey).

That means it didn't...

Update your HandyImage to the latest version and see if it helps, if it still doesn't help - give the url of the page where it doesn't run and I'll double check here why

was just poking in your code, I didn't see imgfrost and imgblaze on the @match and the switch case. Maybe that's why Handy didn't launch for @najushua

Owyn commented 1 year ago

Yes, there's no code for those since they redirect to pixlev immediately for me in both browsers (and the script works there then),

that's why I asked for the url (one shown in the browser url bar) you get stuck on