einaregilsson / Redirector

Browser extension (Firefox, Chrome, Opera, Edge) to redirect urls based on regex patterns, like a client side mod_rewrite.
http://einaregilsson.com/redirector/
MIT License
1.51k stars 153 forks source link

Redirect again and revert redirect #362

Open Jpxe opened 1 year ago

Jpxe commented 1 year ago

I just started using Redirector together with Farside and it has really great potential. However I think it could be much improved if you add a button to redirect again and a button to revert redirect.

Redirect again: this feature would be useful when an instance is not working. It would allow the user to switch the instance manually. Implementation could be to just do the redirect again: https://farside.link/$1

Revert redirect: this feature would be useful when a redirect is not working at all for some reason and you want to switch back to the original URL you redirect from. Here's a example: I click on a link to https://www.instagram.com/natgeo, the extension redirects to https://farside.link/$1, farside then redirects to https://bibliogram.froth.zone/u/natgeo which gives me a "502 Blocked by Instagram" error. In this case I would like a button that reverts the redirect and takes me to the original URL https://www.instagram.com/natgeo.

In addition to buttons it would also be useful if you could implement keyboard shortcuts, to do the same actions but quicker.

I'm using the configuration from their wiki:

I know Farside isn't your project but maybe these features could be useful for more of your users and potentially also in other use cases than the ones I've mentioned here. Anyway thanks for a great extension!

Gitoffthelawn commented 1 year ago

@Jpxe Hello Jesper. Interesting ideas you have!

Where do you propose these new buttons be placed? To my knowledge, each browser extension can (unfortunately) only add one toolbar button.

Jpxe commented 1 year ago

@Gitoffthelawn Oh I didn't know that. In that case I guess the only option is in the extension popup / drop down menu. Or maybe add a custom URL or JavaScript as a bookmark to get a similar function to a button in that way, I believe that has been done by other extensions.

Gitoffthelawn commented 1 year ago

The extension popup / drop down menu is definitely doable.

Thinking about the other options you proposed, a custom URL or JS as a bookmark (a bookmarklet), should also be doable, but AFAIK, both would require the user making the Bookmarks toolbar visible (and that may interfere with how some people have their browsers configured). Do you know any way to get around that caveat?

Jpxe commented 1 year ago

Not really, I think using bookmarks should be optional for the user. I think for me personally I would use keyboard shortcuts since that would be the quickest way, and If I forgot the shortcut I would use the drop down menu.

Gitoffthelawn commented 1 year ago

I concur.

If you or anyone else wants to implement this FR, I think it's a solid request.