You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 9, 2023. It is now read-only.
Note: this only works if the Firefox option When I open a link in a new tab, switch to it immediately. is disabled (under Preferences > General).
Steps to reproduce:
Go to a blacklisted website that isn't insanely fast at firing DOMContentLoaded, e.g. NYTimes.com.
The LeechBlock "Blocked" page will show up. (I'm using the default page.)
Middle-click the here link to open the blocked page in a new tab.
Move the cursor to the new tab.
Start repeatedly hitting Esc at an insane rate
Wait a second or so for enough of the time-wasting site's content to have loaded, somewhere after the title appears but before LeechBlock kicks in.
Click the new tab. Esc sometimes appears to cancel tab switching, so repeat if necessary.
Stop hitting Esc only after the page loading-spinner disappears.
Waste time.
And, yeah, I really shouldn't be doing this...
I tried looking for an easy solution to this, but apparently there's no "load canceled by user" event like there is a DOMContentLoaded event. Maybe there's something only available to Firefox extensions, I don't know.
By the way, thanks for the amazing extension! It really helps me to be more productive. Bad habits are sometimes hard to overcome, so LeechBlock is a real help.