Greasy Fork is available in English.

Discussions » Creation Requests

Redirect nyaa.se

§
Posted: 2015.07.14.
Edited: 2015.07.14.

Redirect nyaa.se

I'm looking for the script that do the following thing:
Redirect from /http:\/\/www\.nyaa\.se\/\?page=download&tid=\d*/ to /http:\/\/www\.nyaa\.se\/\?page=view&tid=\d*/ (just change "download" from the original url to "view"). Someone please help me. Thanks in advance.

woxxomMod
§
Posted: 2015.07.14.

I think this can be done with Linx Amender.

§
Posted: 2015.07.14.

I think this can be done with Linx Amender.

It seems to not work with download link or are there any special rule beside regex. I can't make it to work, it always starts downloading the torrent file.
Here's the sample url:
http://www.nyaa.se/?page=download&tid=691147

woxxomMod
§
Posted: 2015.07.14.

image

§
Posted: 2015.07.14.

I've tried that already with no luck.

woxxomMod
§
Posted: 2015.07.14.

Maybe you have a typo somewhere. With the rule as per screenshot the userscript changes the download link you've posted in the 3rd message to view.

§
Posted: 2015.07.15.

Seem like it only works with clickable links. When I paste the link in the search bar, it's not working.

woxxomMod
§
Posted: 2015.07.15.

Oh, this is handled by Chrome itself as soon as it sees the response type isn't an HTML document but a downloadable file, thus it doesn't execute userscripts at all, so I think your only option is to try a more low-level redirector extension (well, and there's always the possibility to use a heavyweight solution like Fiddler).

§
Posted: 2015.07.15.

Thanks a lot. That extension really help me out.

Post reply

Sign in to post a reply.