404PageRevival

Redirects 404 page not found to the according page in the Wayback Machine

< Feedback on 404PageRevival

Review: Bad - script does not work

§
Posted: 19 Februari 2024
Edited: 19 Februari 2024

Serious bug going on with your script active...

It took awhile for me to track down what was causing this bug -- your script is the culprit (but might be aggravated due to my other installed scripts and addons). [Firefox 115.6.0esr, Tampermonkey 5.0.1]

Two sites...:

On greasyfork.org, my browsing session always showed up as signed-OUT. When I try manually to sign-in, the page would forward to https://greasyfork.org/en/users/signin?returnto= but stop on that blank; when I manually go to any GF page, I would still be showing as signed-Out.

On news.ycombinator.com, the same. Worse, really--because everytime I try to up/down-vote it jumps to the login page - indicating that my session was signed-Out. I login again, it goes back to the post up/down-voted but I see at the top of the page that my session is once again signed-OUT.

What is in the code that is causing this behavior?

DanzHDPembuat
§
Posted: 05 Maret 2024

Sorry for the late reply. I can't seem to be able to recreate this bug. Can you provide a list of other scripts active. All my code does is run a XMLHttpRequest to the url and checks for the status code. If the status code is 404, it injects some HTML into the body with a button that when clicked redirects to the according page in the wayback machine.

§
Posted: 14 April 2024
Edited: 14 April 2024

@DanzHD : By complete fluke, I found the issue:-- it's not due to my other installed scripts; it's due to errors on yours -- on lines 73 and 98, you have GM.xmlHttpRequest - should be an underscore, not a dot.

Made the corrections, and no longer get the problems I reported above.

Tested some links...

-- This works... https://imgur.com/nkulfzu

-- These - and other links - do not work...

https://pastebin.com/4mvakzEV

https://openuserjs.org/scripts/jscher2000/Google_Hit_Hider_by_Domain_(Search_Filter_Block_Sites

'http://lurkerfaqs.com/boards/400-current-events/65781811/?page=9`

Post reply

Sign in to post a reply.