`stop-redirecting-in-notification-bar` automatically when possible
See original GitHub issueAs discussed in https://github.com/sindresorhus/refined-github/issues/2952 and https://github.com/sindresorhus/refined-github/pull/3036
I think stop-redirecting-in-notification-bar
can be done automatically if the user opened the notification in a new tab.
For example:
- disable automatic redirect for all buttons, always
- try calling
history.back()
(unlessalt
is pressed)
If you opened the notification in a new tab, history.back()
won’t have any effect.
IMHO this makes sense since in that case, the notifications list is still open in its own tab.
PR welcome if you test that this works as expected in both browsers.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:14 (14 by maintainers)
Top Results From Across the Web
Block or allow pop-ups in Chrome - Computer - Google Support
Manage pop-ups & redirects for a specific site · On your computer, open Chrome Chrome . · Go to a page where pop-ups...
Read more >Enable/disable automatic redirect. | Firefox Support Forum
So I was having some trouble a few days ago with a website that automatically re-directed as soon as I landed on it...
Read more >Turn off notifications in Windows during certain times
Turn off notifications in Windows during certain times · Select Start > Settings > System > Notifications . · To turn on Do...
Read more >How to stop an automatic redirect from “http://” to “https://” in ...
As the other answer said, the only way to stop this once it starts is to clear the browser cache (or wait for...
Read more >How To Fix Google Chrome Redirects - YouTube
How To Fix Google Chrome Redirects - Remove Chrome Redirect Virus.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Got it, so something like the following?
Another option would be to leave all of the existing code as it is, and only add the condition of
history.length === 1
.So something like: