Skip to content

Instantly share code, notes, and snippets.

@runtl
runtl / random-posts-2.js
Created September 17, 2012 06:39
Random Posts 2
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('R l(b){a=N.9;y=a.P(\'?m=0\');8(2 i=0;i<p;i++){2 c=b.S.M[i];2 d=c.n.$t;8(2 j=0;j<c.6.F;j++){7(c.6[j].o==\'O\'){7(\'g$h\'k c){2 e=c.g$h.V}W{e="10://12.A.B/-C/D-E/z/G/H/I-J-K.L"}2 f=c.6[j].9;7(y!=-1){f=f+\'?m=0\'}}};4.3(\'<a 9="\'+f+\'" o="Q"><q r="u-T">\');4.3(\'<U v="\'+d+\'" w="\'+e.X(\'/Y-c/\',\'/s\'+Z+\'-c/\')+\'"/>\');4.3(\'<x r="u-n">\'+d+\'</x>\');4.3(\'</q></a>\')}};11();8(2 i=0;i<p;i++){4.3(\'<5 13=\\"14/15\\" w=\\"/16/17/18?v=19-k-5&1a-1b=\'+1c[i]+\'&1d-1e=1&1f=l\\"><\\/5>\')};',62,78,'||var|write|document|script|link|if|for|href|||||||media|thumbnail|||in|random_posts||title|rel|rdp_numposts|li|class|||random|alt|src|div||AAAAAAAAAj4|googleusercontent|com|OnR5GeMTs8g|UEeVsS|XNoI|l
@runtl
runtl / random-posts-1.js
Created September 17, 2012 06:39
Random Posts 1
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('2 5=4;2 p=\'G\';2 I=\'\';2 3=[];2 8=0;2 3=B C(5);2 E=F;7 d(a){8=a.N.g$h.$t}k.l(\'<6 m=\\"n/o\\" Q=\\"/q/r/s?u=v-w-6&x-y=0&z=d\\"><\\/6>\');7 A(){9(2 i=0;i<5;i++){2 a=D;2 b=c();9(2 j=0;j<3.H;j++){e(3[j]==b){a=J;K}};e(a){i--}L{3[i]=b}}};7 c(){2 a=1+f.O(f.P()*(8-1));M a};',53,53,'||var|rdp_current||rdp_numposts|script|function|rdp_total_posts|for|||get_random|totalposts|if|Math|openSearch|totalResults|||document|write|type|text|javascript|rdp_info|feeds|posts|default||alt|json|in|max|results|callback|getvalue|new|Array|false|image_size|180|yes|length|rdp_disable|true|break|else|return|feed|round|random|src'.split('|'),0,{}))
@runtl
runtl / back-to-top.js
Created September 14, 2012 14:16
back to top
eval(function(p,a,c,k,e,r){e=function(c){return c.toString(a)};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(c).e(1(){$("#2-3").6();$(1(){$(7).8(1(){9($(b).4()>d){$(\'#2-3\').5()}f{$(\'#2-3\').g()}});$(\'#2-3 a\').h(1(){$(\'i,j\').k({4:0},l);m n})})});',24,24,'|function|back|top|scrollTop|fadeIn|hide|window|scroll|if||this|document|1000|ready|else|fadeOut|click|body|html|animate|400|return|false'.split('|'),0,{}))
@runtl
runtl / pagination.js
Created September 13, 2012 08:28
Numbered Page Navigation For Blogger
// http://www.stylifyyourblog.com/2011/10/pagination-in-blogger.html
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('6 I;6 i;6 f;6 n;1f();C 1g(15){6 5=\'\';J=K(N/2);4(J==N-J){N=J*2+1}A=f-J;4(A<1)A=1;d=K(15/j)+1;4(d-1==15/j)d=d-1;D=A+N-1;4(D>d)D=d;5+="<3 7=\'1A\'>1B "+f+\' 1C \'+d+"</3>";6 16=K(f)-1;4(f>1){4(f==2){4(i=="o"){5+=\'<3 7="1D"><a 9="\'+B+\'">\'+O+\'</a></3>\'}b{5+=\'<3 7="g"><a 9="/r/s/\'+n+\'?&c-k=\'+j+\'">\'+O+\'</a></3>\'}}b{4(i=="o"){5+=\'<3 7="g"><a 9="#" v="L(\'+16+\');w x">\'+O+\'</a></3>\'}b{5+=\'<3 7="g"><a 9="#" v="M(\'+16+\');w x">\'+O+\'</a></3>\'}}}4(A>1){4(i=="o"){5+=\'<3 7="g"><a 9="\'+B+\'">1</a></3>\'}b{5+=\'<3 7="g"><a 9="/r/s/\'+n+\'?&c-k=\'+j+\'">1</a></3>\'}}4(A>2){5+=\' ... \'}1h(6 l=A;l<=D;l++){4(f==
@runtl
runtl / Related.js
Created September 11, 2012 17:59
Related Posts With Thumbnails
/*
* FancyBox - jQuery Plugin
* Simple and fancy lightbox alternative
*
* Examples and documentation at: http://fancybox.net
*
* Copyright (c) 2008 - 2010 Janis Skarnelis
* That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
*
* Version: 1.3.4 (11/11/2010)
/*! jQuery v@1.8.0 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:+d+""===d?+d:H.test(d)?p.parseJSON(d):d}catch(f){}p.data(a,c,d)}else d=b}return d}function K(a){var b;for(b in a){if(b==="data"&&p.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function ba(){return!1}function bb(){return!0}function bh(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function bi(a,b){do a=a[b];while(a&&a.nodeType!==1);return a}function bj(a,b,c){b=b||0;if(p.isFunction(b))return p.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return p.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=p.grep(a,function(a){return a.nodeType===1});if(be.test(b))return p.filter(b,d,!c);b=p.filter(b,d)}return p.grep(a,func