jQuery Lock Plugin – prevent some users from changing content in your page
cnova.github.io
cnova.github.io
What is old is new, what is new is old.
That means, you have 10+ parts to each image. If you want to download it, you'll have to grab each part individually and put them together in an image program.
That, or you can just take a screen shot but you'll lose out on some resolution.
If this trend were to come back I would hope to see it quickly fade away because it'll just become a game of cat and mouse in which ultimately if you want your average user to see the content you have to give them the keys. Hopefully this type of locking becomes a thing of the past like it has before.
In the end the data goes to the user so a way would be found with or without Chrome or any of the other big wigs. What they should do is focus on how to brand it better so users know where it comes from - this would create a way to spread free idea's while giving credit where due and hopefully pushing the idea of the free web further.
$("code.locked").after($("<code class=\"locked\">I circumvent you!</code>")).remove()
Clearly this doesn't prevent scripts from changing it, nor does it prevent users from deleting the locked elements and replacing it with something else.What's the point of this cat and mouse game?
$('h1.locked').clone().replaceAll('h1.locked').text('sucka')This sort of brings me back to the days where you would obfuscate your javascript or entire page by hexing it (or even AES in one of the scripts I've seen!) and writing a javascript interpreter. One of the more clever ones I've seen was just inserting a tonne of newlines so that the actual page contents was way below the view-source window fold. I felt mighty stupid when I fell for that one.
EDIT: tone =/= tonne
While I agree that it's easy to defeat, it could be interesting in test cases to make sure there aren't any DOM side effects to an operation. You could also use it to ensure that there are proper side effects. Probably not the best way to do it, but still a cool idea in my opinion.
document.addEventListener('DOMSubtreeModified', function( e ) {
e.stopPropagation();
}, true );The ones that were (and still are) completely useless because the scripts are client side and trivially easy to 'bypass'? Yeah, I think I'll pass.
Funny enough, uBlock Origin doesn't seem to like this very much, since I just waltzed in and edited the 'protected' elements without so much as an alert:
https://dl.dropboxusercontent.com/u/67216205/jqueryunlocked....
What's next, a jQuery marquee plugin? Or maybe jQuery blinking text...
I could only really see this being useful for malicious browser plugins that aren't targeted at the specific site.
EDIT: Just saw that the author is a company. There goes my theory.
Edit: Interestingly if I click "Edit as HTML" I can change them to my heart's content, but if I try just double clicking the text it won't let me make changes.
...this seems similar.
Yeah, good luck with that.