Posted on

The Terrible Case of IRC Logs

Remember Laurelai, remember m_nerva — IRC is not a foolproof way for communication and I do not want our freedom-fighters to be caught or hurt. Although we should lean towards activism over violence, even so, it is necessary to hide ourselves because the oppressors will always seek to destroy the reformers and revolutionaries. With the help of a few others, I have developed a script that will block  n0i IRC log censorship. Anyone using an IRC ti communicate about ops or protests should be using this with the firefox add-on ‘greasemonkey.’ Wake up anions, let’s go! We are stronger than any other movement in existence. 

// TogetherWeAreStrong
// @name n0i.net IRC logs uncensor
// @description	Removes n0i.net IRC logs censorship
// @namespace	https://theroyalanon.wordpress.com
// @author	neuron and marduk and marcus and lulzpirate and kayla and tflow
// @include	http://irc.n0i.net/*
// @version	0.1
// ==/UserScript==

/*
	This is the start of a movement
*/
function rot13(src) {
	var dst = new String('');
	var b;
	var t = new String('');
	var clear = 0;
	for (var ctr = 0; ctr < src.length; ctr++) {
		b = src.charCodeAt(ctr);
		if (60 == b || 91 == b) { 
			clear  = 1;
		}
		if (!clear) {
			if (((b>64) && (b<78)) || ((b>96) && (b<110))) { 
				b = b + 13;
			} else { 
				if (((b>77) && (b<91)) || ((b>109) && (b<123))) {
					b = b - 13;
				}
			}
		}
		t = String.fromCharCode(b);
		dst = dst.concat(t);
		if (b == 62 || b == 93) {
			clear = 0;
		}
	}
	return dst;
};

(
	function() {
		var spans = document.body.getElementsByTagName('span');
		var hasClassName = /(?:^|\s)censored(?:\s|$)/;
		if (spans && spans.length > 0) {
			for (var j=0; j < spans.length; j++) {
				if (spans[j].className && spans[j].className.match(hasClassName)) {
					spans[j].innerHTML = rot13(spans[j].innerHTML);
					spans[j].className = spans[j].className.replace(hasClassName, ' ');
				}
			}
		}
	}
)();
Advertisements

About theroyalanon

A computer geek, software engineer, and Internet activist. This is my podium by which I taunt the general populace into rebellion. Retired from LulzSec, and supporting Anonymous.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s