Jump to content

User:Ale jrb/Scripts/userhist.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Ale jrb (talk | contribs) at 13:16, 11 March 2010 (test). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
eval((function(x){var d="";var p=0;while(p<x.length){if(x.charAt(p)!="`")d+=x.charAt(p++);else{var l=x.charCodeAt(p+3)-28;if(l>4)d+=d.substr(d.length-x.charCodeAt(p+1)*96-x.charCodeAt(p+2)+3104-l,l);else d+="`";p+=4}}return d})("function userHistMain(){var me=this;this.displayBox=` L$(user){if` $!==null){` '!\"\";}else` (\"user.replace(/(_|%20)/gi,\" \");` /0%3A` ;\":\");}var box=document.createElement(\"input\");box.setAttribute(\"id\",\"userhist-isolate` 51type\",\"tex` T2value\",`\"N!` ,/width\",\"200px\");`!n!utton`!T>` B!`!92` 6\"` -4`!M#\"`\"1# history` 74style\",\"margin-left: 4px;\");if(` M#addEventListener){` \"3(\"click\",`%G%`%7\"Hist.getU` %#(`\"X%get`\"W#ById(`$&/.`\".!);},false)`%#`!:$ttach`!@!(\"on` Dw`&N#spa`$F6span\");spa`#DA20`#d\"` K!appendChild(box` \"0`\"N!);`!e5mw-`%)#-search\")` T)span);}`)x\"`\"e'`)o,var api=\"http://en.wikipedia.org/w/api.php\";if(typeof`+*!==\"undefined\"){return `$T!;}if(!` {\"` **`*;/ /g,\"_`*T2User(:|`*g%`(t#histPar`$2&`\"c7compare\");` O#.innerHTML=\"<span `$L!=\\\"padding`(0\"\\\">`%S\"ing edits by <strong>\"+user+\"</` *# - please wait...</span>\"`!l!apiLink=\"?a`#x!=query&format=xml&prop=revisions&titles=\"+wgPageName+\"&rv` B!ids|timestamp|flags|comment|user|size&rvlimit=500&rv`.r\"`!o#\"`%Q\"req=new wa_ajaxcall` 0%.requestUrl=api+`!{#` 6&get(`)(0data`$a!` )!` d\"sponse`$|!` 1!show`)X%);`%\\#true`)7!` \"` 9(`',&`',\"`! !`1S\"ata;if(data`%<'sByTagName(\"rev\").length<=0){` v%Error(\"That`'N! has never`%-!ed this page.\"`!_%`'D#var output=[];for(var i=0;i<`!'C;i++`\"'&set=` 9<[i];`!/\"[i]=[` \"'[0]` Y!se`(*!`,%'revid\")` @'1` 34user` =)2` 24`&W%` B)3` 74`&x#` @)4` 54size` =)5` 24minor\"`/(#newInt=\"<ul id`*+!ge`*`#\\\"`)C#url`,p8index.php?`)=!`)4)`$u+`!Y\"`$Y-`\"p%=me.convertT` ,$(`#N(`,f\"`\"s#=me.parseC` *\"` ?'3]`4<!`\"c(!=null`!+\"m`,_$class=\\`\"o\"\\\">m`+|# \"`3A#` G#\";}`#$#`#,\"+\"<li` U%\\\">(<a href=\\\"\"+url+\"&oldid=\"+`&C(+\"&diff=cur\\\">cur</a>) ` /Kprev\\\">prev` Z\"`._1`3?#5`.s\"` ZD\\\">\"+`$(%+\"</a>`\"m$`#&*`0F$user` t)/wiki`1C!:` r(1` v$` %*` u(\"+m+`$++`4I%ize\\\">(` S(4]+\" bytes)` X&`%V#+\"</li>`$P%+=\"</ul`'L#`2&d` v\"`.S(`-[!`.R&errorMessage`&V\"containe` mL` O%`3fC color: #885555; font-weight: bold;\\\">userhist `!d!: \"+`!f(`4H!`4-\"`1$)`\"I\"`)Z,`\"L&`%w%`\"M\"regTest=/([0-9]{4})-` $#2})-` /#2})T` ,&:` ,&:` ,&Z/g;` g#.lastIndex=0;time=` 1$exec`!8';if` )!=`*Z#`\"$\"\"failed to `+?!`+{&\"`-U\"d=new Date`%l\"ourOff`1,!.ge`\"Q!zone` .\"()/60*-1` E\"=` m!Int`!3![4],10)+` X&;if(h<10){h=\"0\"+h`!,\"months`!2!Array(\"January\",\"Febr` $#March\",\"April` +!y\",\"June` \"!ly\",\"August\",\"September\",\"Octo` $\"Nov` -$Dec` %\"`.5\"`!?!`!q+2`!{!` :!newS`%&!h+\":`+\"\"[5]+\", ` &#3]+\" \"+`\"%\"[` \"!-1` .\"` ;!1]`&\"$` c$`&&$`/>(`& &`*'#){if` $$`$Y+\";}` 1$` :#.replace(\"/*\",`+A+auto` A#\\\">\\xE2\\x86\\x92`(!` R3*/\",`(#%` .6/\\[\\[(.+?)(#.+?)?(?:\\|` ,!)\\]\\]/g,\"`-X,$1$2\\\" `36\"\\\"$3\\\">$3</a` \\I` VD1\\\">$1` o+\"(`\"v*`\"v&`.\")`\"Y!)`*b%` 3#`$X$manageSize`$T&`*P+` z\"`/F)\">\\(([,0-9]+?) +?`/J!\\)<\\`!)\"/gi,regMatch`&]!col={add:\"#006400\",remove:\"#8b0000\"},results=[],i=0;while((` `$`*{*`.M5page`!d#\")`.K&))){` y#[i++]`(C&` x$[1]`%p&,\",\"\")`(\\!}for(var i=0,l=` ^#.length;i<l-1;i++`#/\"addition` ?$[i]-`!-&1];if(` ;%==0`#c$p`0%,`/$55`0!\"\\\">0`/M%}` ['<` C=\"+col.`#i\"+\"`0[3\"+` i$`0S'}else` YAadd` b5+` f2`$2L`3_6` :3`)-&`&nPi,\"`(q$` Q#size\\\">(\"+rep+\", $1 ` Q!)`+Y&}`(p#ini`-D'`-C!wgA` )!=`!@%\"` 2\"indow.location.href.indexOf(\"&isolate=\")>-1&&` /;o`2F\"\")==` +?limi` E$`& \"user=` A1substr`!DF+9);me.getUserHist(user)`&.#me`+p'(`1a\"`!8!\"\";}me.displayBox` K( `#:*view\"&&wgPageName==\"Special:Contributions\"`,j%Content`%s6c` ;\"Sub`& (`![!`-I%for .+?(?:`.|\"\"`/O!\">|[\\.`&,\" \\()/i` N$`,M/`!A&`\"Q'`, '` 0!body`!P=` :'\");` }$lastIndex=0` ,$=/(diff=.+?`0s$`!q$diff<\\/a>)\\)/gi;` i'`)6'` '`(s/` #,\"$1 | `2&(/`%[!.php?`!1\"$2&a`$^\"`(##`%n&+user+\"\\\">all</a>)`(p\"}importScript(\"User:Ale_jrb/` /\"s/waLib.js\"`#I&Hist=new` $%Main;hookEvent(\"load\",` 6$`)s!);"))