If you develop desktop applications with Electron, you will quickly need an application menu. Even if you don’t have any menu options that are specific to your application, you will still want to add a menu to get things like copy and paste to work on a mac. Usually you’ll just copy and paste the…
Annoying.js: How to be an asshole
The file itself is commented with “functionality”, so I won’t bother repeating it here. You can invoke different functions via the
Annoying.noSelect(); will disable text selection,
Annoying.noRightClick(); will disable the context menu, and
Annoying.kitchensink(); Will turn all the functionality on. But you’re not going to use it anyway, right? ;)
Breaking out of iframes is something I think more websites should implement, actually, if only to prevent the “OMG!!!! Look What this Kid did to his School after being Expelled! ” scams that all of my friends on Facebook keep falling for.
Let me know if you have any horrible additions!
Just the other day I was using Opera mini and noticed it had a very cool little feature that added a nice but subtle bit of experience to my surfing, and I wondered why regular websites didn’t do the same. So I wrote a script for it. It’s the small things What is this functionality, then? When…
In order to correctly draw a 1px wide line, on a single pixel, you actually need to position it 0.5 pixel further. …