Electron , 14 January 2019If 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…
Apps Electron , 24 April 2018The Electron App framework makes it really easy to build cross-platform applications. I know this, because I’ve made a bunch. But how do you find out if people are using the features in your application? You could ask them or wait for them to tell you, but you can also use Google Analytics’ event tracking…
Life , 23 April 2019I want to tell you about my new company Firstversionist. But to do that, I also need to tell you a little more about me. I have been a bit of everything over the past 20 years of being active on the web. I started out at 10, having a little website focused on other kids…
How about adding badly rendered dropcaps at the start of every paragraph (not just at the start of every article)?
How about cursor:none on body tag :D
[…] http://kilianvalkhof.com/2011/javascript/annoying-js-how-to-be-an-asshole/ annoying.js – sooo nice and evil idea […]
Rob,
Disabling copying text offers exactly zero protection against unauthorised copy of copyrighted material. Your browser had to download that material to display it to the user in the first place. Wouldn’t you assume that fetching the page with ANY web client or simply disabling Javascript on a browser would suffice to copy that material? DUH!!!
You should not be building sites. You don’t even understand the very basic concepts of the web.
And then we wonder why we see so many ugly, broken, annoying sites all over the place…
Rob – opening links in new windows is a major accessibility no-no. It can seriously screw up screen readers and it confuses the hell out of some users.
[…] Vi um post bem legal e resolvi traduzir para vocês. Fala sobre técnicas JavaScript para bloquear a copia de textos, redimensionar janelas, enfim, tudo que você possa fazer para irritar seus visitantes ! (fonte) […]
[…] Vi um post bem legal e resolvi traduzir para vocês. Fala sobre técnicas JavaScript para bloquear a copia de textos, redimensionar janelas, enfim, tudo que você possa fazer para irritar seus visitantes ! (fonte) […]
Found this on a solution provided by the “leader in SaaS solutions for the hospitality industry”, needs to find a home in annoying.js:
preventBack()
https://gist.github.com/1000605
[…] techniques you can use if you want to scare your visitors away, or want to piss them off. Annoying.js is the […]
[…] techniques you can use if you want to scare your visitors away, or want to piss them off. Annoying.js is the […]
YMMD :)
bindEvil!
I am not sure I understand the syntax used to create the object. Testing a small subset of the code yields ‘TypeError: Cannot set property ‘fullScreen’ of undefined’ in Chrome.
//code below//
var Annoying;
(function(a) { /** * Resize the window to fullscreen (1024×768 always) */ a.fullScreen = function ()
{ window.resizeTo(1024,768); };
}(Annoying));
[…] Qui trovate Annoying.js. […]
[…] Annoying.js: How to be an… Annoying.js – This is some crazy javascript that can really tick off your users. (tags: javascript jquery) This was written by delicious. Posted on Thursday, August 4, 2011, at 7:03 am. Filed under Uncategorized. Bookmark the permalink. Follow comments here with the RSS feed. Post a comment or leave a trackback. […]
Hahah, very good indeed. Anyone with a half a clue can get round these prevention measures but guess most people don’t have half a clue. nice work though!
You’re crazy! Some people will think: “That’s great, just what I needed!”. It’s like leaving a loaded gun on a school yard.
I would add preventing any keyboard event and trying automatically to add to favourites
How about when you visit a website, and immediately the screen gets greyed out, and something else pops up in your face, requesting a response.
I usually exit immediately , never to go back, but occasionally I turn off Java, and go back……the tacky anoyance is now gone.
You gotta wonder where web designers learn that this is OK.
[…] Visit this link […]
[…] Annoying.Js: How To Be An Asshole urbanlegend.hu What the Hex? […]
Wow! Its awesome!
This script just describe a government functionality.
So now i need to switch off the “javascript of government” any ideas?
Matrix is own all of us… so sad
A quick necro-reply to Rob, for anyone who still doesn’t get it:
Disabling right-click does not stop anyone from doing whatever they feel like with your copyrighted content. THEY ALREADY HAVE IT. It’s on their screen looking at them. Let me think of the ways I could copy, let’s say, a picture from a page:
1. Turn off JavaScript, reload
2. Get it from Page Info
3. Find the name/URL in the page source
4. Snag it out of my browser cache
5. Take a screenshot and cut it out of that
6. If all else fails, line up my camera and take a photo!
Disabling right-click prevents exactly none of these. And anyone who really wants to jack your content is going to be using them routinely, probably 1 or 2. It annoys the good guys and does jack-all to stop the bad guys. This is not rocket science.
So, what does it actually do? Well, that ties in to the part about forcing pages to open in a new window. There are times when I want a page to open in a new tab, generally in the background. I might want to open several different news stories, for instance, so I can just go from one to the other, especially if some of them are in those annoying “you may also be interested in…” blocks that change from reload to reload, so if you open one of those stories in the same window, the others will have changed when you get back. Now, if I’m being a slacker (that is, I don’t want to actually move my left hand to the keyboard so I can control-click on the link) I’ll right-click and pick “open in new tab” from the right-click menu. Except, of course, if some wanker has disabled that right-click menu. If they have, I have to turn off JavaScript, reload the page, and THEN open up my links as needed. And I’m not happy with the person who made me do that, especially because they did it for utterly spurious reasons.
One basic rule of website design is that things should work like users expect them to. Or, as Jakob Nielsen put it, your users spend most of their time on other people’s websites. He’s totally right: they do. They’ve learned how things should work (including links opening in the same window and right-click bringing up a context menu) and if you try to change that, you won’t make those users learn a whole new paradigm just for your website; they’ll just go to a website that they don’t have to figure out. Most likely one run by your competitors.
[…] here: http://kilianvalkhof.com/2011/javascript/annoying-js-how-to-be-an-asshole/ Share this:TwitterFacebookLike this:LikeBe the first to like this […]
[…] If you want to be an a**hole, here’s Javascript code that disables right-click, selecting text, dragging content, closing th… […]
Evil collection of annoying JS all in one place. More website should send reminders when their users ‘accidentally’ close the window.
[…] library with examples of JavaScript techniques you can use if you want to scare your visitors away. Visit this link Source: CSS Globe Tweet#call_to_action h4{padding:0px […]
very interesting way. I do like the way you say to turn of the right click menu for HTML5 Dev. There is definitely a place for this library in web development.