Can AdBlock block javascript annoyance effects?

Everything about using Adblock Plus on Mozilla Firefox, Thunderbird and SeaMonkey
Post Reply
User avatar
WeyrleaderZor
Posts: 1
Joined: Wed Dec 05, 2007 11:33 pm
Contact:

Can AdBlock block javascript annoyance effects?

Post by WeyrleaderZor »

I happened across a site about "urban legends" and thought it'd be nice to copy the text (which was verbatim to something that'd been almost spam-mailed to me (mass-mailed from otherwise well-meaning family and friends - I love these people, but these things are silly)) of it so I could paste it in a more readable manner on text editor (to share with someone who'll be in the same room as me later this evening that wouldn't bother to read through the multiple layers of >>>> markers from forwards). However the site had a portion of code that disabled selecting anything...

Here's what the code snippet from the site looks like:

Code: Select all

<script type="text/javascript">
<!--
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
-->
</script>
Is there any way to prevent this from happening? I know Firefox has a feature to allow you to disable javascript the ability deny you a right-click on a site (I love that, I find that "You'll do what I say" approach to be rude and rather over-bearing, but that's just me.) but I've never seen this effect to stop you form highlighting text (which I use to read through long paragraphs sometimes - it's nice when you aren't finding that for some unknown reason the web designer has decided you can't do it on their page b/c they don't like it) - tough, especially for this site... this site is all about "urban legends" and those are things that are, by their nature, ALREADY in the public and the "control" aspect of that script really irritates me from doing something harmless (and quite handy and useful) to be able t more easily read and share the content with others.

If it were something like a published original story or book, sure, do what you want... but I hate this... is this the sort of thing that AdBlock Plus can help prevent from happening?

The site I "borrowed" that code form is: http://www.snopes.com

The main page(s) will let you select things, any of the actual pages about/with something on them don't. Poke around and you'll see what I mean (that script, BTW was IN each page's source (likely dynamically/automatically placed there by the ASP coding).[/url]
Wladimir Palant

Post by Wladimir Palant »

I usually press Ctrl+A or choose Edit / Select All from the menu - the site cannot prevent this.
Post Reply