3 ms·
This is the history.pushState() API in action. I use it on https://theannoyingsite.com https://theannoyingsite.com to fill the history with entries to effective
by feross 6y ago
This is the history.pushState() API in action. I use it on https://theannoyingsite.com https://theannoyingsite.com to fill the history with entries to effectively disable the back button.
Also, this one is a gem:
window.addEventListener('popstate', () => {
window.history.forward()
})
Source code here: https://github.com/feross/TheAnnoyingSite.com/blob/master/static/index.js https://github.com/feross/TheAnnoyingSite.com/blob/master/st...
- Shared404 6y agoI don't know if I hate this or love it.
- fphhotchips 6y agoI loved it. I feel like I should get bonus points for killing the DVD bouncing cat by hitting the exit button as it moved around rather than just using Alt-F4...
- Shared404 6y agoI cheated for most of the things like that. I have tiling turned on in my DE, I didn't even realize that things were supposed to be moving until I was almost done.
- vardump 6y agoDamn. That site truly is annoying. It downloads files, does bing searches with... not so nice search terms, etc. Don't click it!
- yesenadam 6y agoI watched a vid of your The Most Annoying Website talk a while ago. I'm not sure which of the many versions it was: https://www.google.com/search?q=annoying+site+feross&tbm=vid https://www.google.com/search?q=annoying+site+feross&tbm=vid Highly recommended! It's very funny, and safer than actually visiting the site, by the sound of it.
- hetspookjee 6y agoHa, I really appreciate the music choice! Ziad - Elektronik Supersonik for anyone who's wondering.