From db5642ab86496444788f453d08609cb00a609100 Mon Sep 17 00:00:00 2001 From: Romain d'Alverny Date: Wed, 18 Jan 2012 01:58:22 +0000 Subject: set anti-SOPA script - to be removed this evening --- skins/cavendish.php | 1 + skins/cavendish/stop-censorship.js | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 skins/cavendish/stop-censorship.js diff --git a/skins/cavendish.php b/skins/cavendish.php index a0f2b56..dd3ba04 100644 --- a/skins/cavendish.php +++ b/skins/cavendish.php @@ -117,6 +117,7 @@ class cavendishTemplate extends QuickTemplate { data['trackbackhtml']) print $this->data['trackbackhtml']; ?> + data['body_ondblclick']) { ?> ondblclick="text('body_ondblclick') ?>" diff --git a/skins/cavendish/stop-censorship.js b/skins/cavendish/stop-censorship.js new file mode 100644 index 0000000..0432aea --- /dev/null +++ b/skins/cavendish/stop-censorship.js @@ -0,0 +1,4 @@ +// stopcensorship.js minified +// Author: Doug Martin (@dougmartin or http://dougmart.in/) +// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php +(function(){var h,d,a,c;function b(){document.cookie="__REMOVE_STOP_CENSORSHIP__=1;path=/";window.location.reload();return false}function g(){var k,j,i,m;function l(p,t,n){var o,r,s;function q(u){if(u){for(o in u){if(u.hasOwnProperty(o)){try{r.style[o]=u[o]}catch(v){}}}}}r=document.createElement(p);r.innerHTML=t;q(k);q(n);return r}k={background:"#000 none repeat scroll 0% 0%",borderCollapse:"separate",borderSpacing:"0",border:"medium none #000",bottom:"auto",captionSide:"top",clear:"none",clip:"auto",color:"#fff",cursor:"auto",direction:"ltr",display:"inline",emptyCells:"show","float":"none",fontStyle:"normal",fontVariant:"normal",fontWeight:"bold",fontSize:"12px",fontFamily:"verdana,helvetica,arial,sans-serif",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"normal",listStyle:"disc outside none",margin:"0",maxHeight:"none",maxWidth:"none",minHeight:"0",minWidth:"0",orphans:"2",outline:"invert none medium",overflow:"visible",padding:"0",pageBreakAfter:"auto",pageBreakBefore:"auto",pageBreakInside:"auto",position:"static",right:"auto",tableLayout:"auto",textAlign:"left",textDecoration:"none",textIndent:"0",textTransform:"none",top:"auto",unicodeBidi:"normal",verticalAlign:"baseline",visibility:"visible",whiteSpace:"normal",widows:"2",width:"auto",wordSpacing:"normal",zIndex:"auto"};j={textDecoration:"underline",cursor:"pointer"};c=l("div","",{position:"absolute",top:"0",left:"0",textAlign:"center",margin:"0",padding:"5px 0",width:"100%",borderTop:"2px solid #fff",borderBottom:"2px solid #fff",zIndex:2147483647});i=l("a","STOP CENSORSHIP",j);i.href="http://americancensorship.org/";m=l("a","Remove this",j);m.href="#";m.onclick=b;c.appendChild(i);c.appendChild(l("span","|",{padding:"0 10px"}));c.appendChild(m);document.body.appendChild(c)}function f(){var k,j;function i(n){var o,m,l;o=n.nodeValue.split(/\s/);for(m=0,l=o.length;m