 function * **************************************** *** twinklediffu82ejsu800 diff module **************************************** * mode ofu800 invocation tabu800 onu800 nonu800 diff pages "last" ; tabs onu800 diff pages "since" "since mine" "current" * active onu800 existing nonu800 special pages * twinkleu82ediff function twinklediff ifu800 mwu800u82econfigu82egetu800 'wgnamespacenumber' 0u800 mwu800u82econfigu82egetu800 'wgarticleid' return; twinkleu82eaddportletlink mwu800u82eutilu82egeturl mwu800u82econfigu82egetu800 'wgpagename' diff 'curu800' oldid 'prev' 'u8d8a2u8d8aeu8d8b1u8db8cu8d986 u8d988u8db8cu8d8b1u8d8a7u8db8cu8d8b4' 'twu800 lastdiff' 'u8d986u8d985u8d8a7u8db8cu8d8b4 u8d8aau8d981u8d8a7u8d988u8d8aa u8d8afu8d8b1 u8d8a2u8d8aeu8d8b1u8db8cu8d986 u8d988u8db8cu8d8b1u8d8a7u8db8cu8d8b4' ; localized show additional tabs only onu800 diff pages ifu800 mwu800u82eutilu82egetparamvalue 'diff' twinkleu82eaddportletlink function twinkleu82ediffu82eevaluate false ; 'u8d8aau8d981u8d8a7u8d988u8d8aa u8d8a7u8d8b2 u8d986u8d981u8d8b1 u8d982u8d8a8u8d984u8db8c' 'twu800 since' 'u8d986u8d985u8d8a7u8db8cu8d8b4 u8d8aau8d981u8d8a7u8d988u8d8aa u8d8a8u8db8cu8d986 u8d8a2u8d8aeu8d8b1u8db8cu8d986 u8d8aau8d981u8d8a7u8d988u8d8aa u8d8a8u8d987 u8d988u8db8cu8d8b1u8d8a7u8db8cu8d8b4 u8daa9u8d8a7u8d8b1u8d8a8u8d8b1 u8d982u8d8a8u8d984 u8d8a7u8d8b2 u8d8a2u8d986' ; localized twinkleu82eaddportletlink function twinkleu82ediffu82eevaluate true ; 'u8d8aau8d981u8d8a7u8d988u8d8aa u8d8a7u8d8b2 u8d988u8db8cu8d8b1u8d8a7u8db8cu8d8b4 u8d985u8d986' 'twu800 sincemine' 'u8d986u8d985u8d8a7u8db8cu8d8b4 u8d8aau8d981u8d8a7u8d988u8d8aa u8d8a8u8db8cu8d986 u8d8a2u8d8aeu8d8b1u8db8cu8d986 u8d8aau8d981u8d8a7u8d988u8d8aa u8d988 u8d8a2u8d8aeu8d8b1u8db8cu8d986 u8d988u8db8cu8d8b1u8d8a7u8db8cu8d8b4 u8d985u8d986' ; localized varu800 oldid oldid . .exec '#mwu800 diff ntitle1' .find 'strong au800' .first .attr 'href' 1u800 ; twinkleu82eaddportletlink mwu800u82eutilu82egeturl mwu800u82econfigu82egetu800 'wgpagename' diff 'curu800' oldid oldid 'u8d8aau8d981u8d8a7u8d988u8d8aa u8d8a8u8d8a7 u8d986u8d8b3u8d8aeu8d987u8d994 u8d981u8d8b9u8d984u8db8c' 'twu800 curdiff' 'u8d986u8d985u8d8a7u8db8cu8d8b4 u8d8aau8d981u8d8a7u8d988u8d8aa u8d8a8u8d8a7 u8d986u8d8b3u8d8aeu8d987u8d994 u8d981u8d8b9u8d984u8db8c' ; localized ; twinkleu82ediffu82eevaluate function twinklediffevaluate meu800 varu800 user; ifu800 meu800 user mwu800u82econfigu82egetu800 'wgusername' ; else varu800 node documentu82egetelementbyid 'mwu800 diff ntitle2' ; ifu800 node nothing tou800 dou800 return; user node .find 'au800' .first .text ; varu800 query 'prop' 'revisions 'action' 'query' 'titles mwu800u82econfigu82egetu800 'wgpagename' 'rvlimit' 1u800 'rvprop' 'idsu800 'user' 'rvstartid' mwu800u82econfigu82egetu800 'wgcurrevisionid' 1u800 iu800u82eeu800. notu800 theu800 current oneu800 'rvuser' user ; morebitsu82estatusu82einit documentu82egetelementbyid 'mwu800 content text' ; varu800 wikipedia_api newu800 morebitsu82ewikiu82eapiu800 'u8daafu8d8b1u8d981u8d8aau8d986 u8d8a7u8d8b7u8d984u8d8a7u8d8b9u8d8a7u8d8aa u8d985u8d8b4u8d8a7u8d8b1u8daa9u8d8aau8e2808cu8daa9u8d986u8d986u8d8afu8d987u8d994 u8d8a7u8d988u8d984u8db8cu8d987' query twinkleu82ediffu82ecallbacksu82emain ; localized wikipedia_apiu82eparams user user ; wikipedia_apiu82epost ; ; twinkleu82ediffu82ecallbacks main function self varu800 xmldoc selfu82eresponsexml; varu800 revid xmldoc .find 'revu800' .attr 'revid' ; ifu800 revid selfu82estatelemu82eerror 'u8d987u8db8cu8da86 u8d986u8d8b3u8d8aeu8d987u8d994 u8d982u8d8a8u8d984u8db8cu8e2808cu8d8aau8d8b1 u8d985u8d986u8d8a7u8d8b3u8d8a8u8db8c u8d9beu8db8cu8d8afu8d8a7 u8d986u8d8b4u8d8afu8d88c u8db8cu8d8a7 ' selfu82eparamsu82euser 'u8d8aau8d986u8d987u8d8a7 u8d985u8d8b4u8d8a7u8d8b1u8daa9u8d8aau8e2808cu8daa9u8d986u8d986u8d8afu8d987 u8d8a8u8d988u8d8afu8d987u8e2808cu8d8a7u8d8b3u8d8aa. u8d9beu8d8b1u8d988u8d8b3u8d987 u8d985u8d8aau8d988u8d982u8d981 u8d8b4u8d8af.' ; localized return; windowu82elocation mwu800u82eutilu82egeturl mwu800u82econfigu82egetu800 'wgpagename' diff mwu800u82econfigu82egetu800 'wgcurrevisionid' oldid revid ; ; jquery ; 