† †
. Email: he [at] horm
. RSS: atom
. Powered By: Blogger
Cé, Red, Ditt!



Thanks GreaseMonkey, RegEx, DOM, stackoverflow.com, Firefox, Notepad++, code2html and other happy mates of mine, without whom this work would never have come to fruition!

 1 // ==UserScript==
2 // @name DecryptQCD
3 // @namespace QCD
4 // @author Aideen N
5 // @include http://blog.horm.org/*
6 // ==/UserScript==
7
8 unsafeWindow.alphabet =
9 "thequickbrownfoxjumpsoverthelazydog";
10
11 function decodeThis(r) {
12 var len = r.length;
13 var s = ""; var t = "";
14 var k = 0; var j = 0;
15 for(var i=0; i+k<len; i++) {
16 /* ... DECRYPTION
17 ... OPERATIONS
18 ... R IN THESE
19 ... 4 LINES! */

20 s += String.fromCharCode(j);
21 }
22 s = nl2br(s);
23 return s;
24 }
25
26 function dg(x)
27 { return document.getElementById(x); }
28 function deescape(x)
29
{ return x.replace(/&lt;/g,'<')
30 .replace(/&gt;/g,'>')
31 .replace(/&amp;/g,'&'); }
32 function nl2br(x)
33
{ return x.replace(/\n/g,'<br />'); }
34
35 var divs = document.getElementsByTagName('div');
36 for (var i=0;i<divs.length;i++)
37 if (divs[i].getAttribute('class') == 'qcd')
38 divs[i].innerHTML =
39 decodeThis(deescape(divs[i].innerHTML));


Aidin, somehow, is a real legal guy, and nothing more, and nothing less.