The Mudcat Café TM
Thread #87498   Message #1638230
Posted By: JohnInKansas
31-Dec-05 - 03:07 PM
Thread Name: BS: Bias on CNN
Subject: RE: BS: Bias on CNN
If you don't like CNN content, a couple of S.A. programmers have written a demo script to help.

From the "GeekActivity" page of Technology Review August 2005:

If you use Netscape for your browser, a Plugin called Greasemonkey allows you to edit how web pages are displayed. As an example of a useful application, vision impaired persons could use it to display everything in black-on-white in 14 point characters regardless of the web page settings.

Simson Garfinkel and Peter Wayner have written a sample script that they call "Doubletake" that allows you to reverse the intent, insert comments, change specific words to "your own meaning" etc. An example given – using Netscape, with Greasemonkey installed, and with the Doubletake script activated, every occurance of the name of "a politician you thing is mentally challenged" would be displayed as "Village Idiot." Some here might want to replace any and all verbs by inserting "the mortal sin of " in front of them, and it appears to be fairly easily possible.

With proper use of the above program(s) and this script, you can have every page on the internet reflect your own chosen biases regardless of what "they" actually post.

Code and instructions are supposed to be posted at doubletake.ex.com , but the site doesn't answer at the moment. The sample script and brief description given by the authors was:

"Repeatedly calling the replace function for each word will rewrite the document. This approach is sluggish. The time required is proportional to the size of the document multiplied by the length of the list of words to be replaced.

To create a snappier version, we used JavaScript's built-in hash tables to store the list of words to be replaced. We preprocessed this list and built a table called matchTable, then broke the document apart and replaced every word appearing in the table.
if (typeof matchTable[word]!="undefined"){ ans=ans+matchTable[word];
} else {
ans=ans+word;
}
if (typeof matchTable[word]!="undefined"){ ans=ans+matchTable[word];
} else {
ans=ans+word;
}

However long the list of words to be replaced, the matchTable function finds each match in a constant amount of time, so the time required is proportional only to the size of the document."

If the site doesn't come back, you'll have to search or figure it out for yourself....

John