 function * **************************************** *** twinkleunlinku82ejsu800 unlink module **************************************** * mode ofu800 invocation tabu800 "unlink" * active onu800 nonu800 special pages except wikipedia sandbox * twinkleu82eunlink function twinkleunlink ifu800 mwu800u82econfigu82egetu800 'wgnamespacenumber' 0u800 mwu800u82econfigu82egetu800 'wgpagename' 'u8d988u8db8cu8daa9u8db8cu8e2808cu8d9beu8d8afu8db8cu8d8a7 u8d8b5u8d981u8d8adu8d987 u8d8aau8d985u8d8b1u8db8cu8d986' localized restrict tou800 extended confirmed users seeu800 #428u800 morebitsu82euserisingroup 'extendedconfirmed' && morebitsu82euserissysop return; twinkleu82eaddportletlink twinkleu82eunlinku82ecallback 'u8d9beu8db8cu8d988u8d986u8d8afu8d8b2u8d8afu8d8a7u8db8cu8db8c' 'twu800 unlink' 'u8d8b2u8d8afu8d988u8d8afu8d986 u8d9beu8db8cu8d988u8d986u8d8afu8d987u8d8a7u8db8c u8d8afu8d8b1u8d988u8d986u8e2808cu8d988u8db8cu8daa9u8db8c' ; localized ; twinkleu82eunlinku82egetchecked2 function twinkleunlinkgetchecked2 nodelist ifu800 nodelist instanceof nodelist && nodelist instanceof htmlcollection return nodelistu82echecked nodelistu82evalues ; varu800 result ; foru800 varu800 iu800 0u800; iu800 u8d9beu8d986u8d987u8d8a7u8d986 u8daa9u8d986u8db8cu8d8af'   localized '. u8d8a8u8d8b1u8d8a7u8db8c u8d985u8d8abu8d8a7u8d984u8d88c ' localized node1 ' u8d8aau8d8a8u8d8afu8db8cu8d984 u8d985u8db8cu8e2808cu8d8b4u8d988u8d8af u8d8a8u8d987 ' localized node2 '. u8d8a7u8d8b2 u8d8a7u8db8cu8d986 u8d8a7u8d8a8u8d8b2u8d8a7u8d8b1 u8d8a8u8d8a7 u8d8a7u8d8adu8d8aau8db8cu8d8a7u8d8b7 u8d8a7u8d8b3u8d8aau8d981u8d8a7u8d8afu8d987 u8daa9u8d986u8db8cu8d8af.' localized ; formu82eappend type 'input' name 'reason' label 'u8d8afu8d984u8db8cu8d984 ' localized value presetreason presetreason   size 60u800 ; varu800 query; ifu800 mwu800u82econfigu82egetu800 'wgnamespacenumber' 6u800 file query 'action' 'query' 'list' 'backlinks 'imageusage' 'bltitle' mwu800u82econfigu82egetu800 'wgpagename' 'iutitle' mwu800u82econfigu82egetu800 'wgpagename' 'bllimit' 'maxu800' 500u800 isu800 maxu800 foru800 normal users 5000 foru800 bots andu800 sysops 'iulimit' 'maxu800' 500u800 isu800 maxu800 foru800 normal users 5000 foru800 bots andu800 sysops 'blnamespace' twinkleu82egetpref 'unlinknamespaces 'iunamespace' twinkleu82egetpref 'unlinknamespaces 'rawcontinue' true ; else query 'action' 'query' 'list' 'backlinks 'bltitle' mwu800u82econfigu82egetu800 'wgpagename' 'blfilterredir' 'nonredirects 'bllimit' 'maxu800' 500u800 isu800 maxu800 foru800 normal users 5000 foru800 bots andu800 sysops 'blnamespace' twinkleu82egetpref 'unlinknamespaces 'rawcontinue' true ; varu800 wikipedia_api newu800 morebitsu82ewikiu82eapiu800 'u8daafu8d8b1u8d981u8d8aau8d986 u8d9beu8db8cu8d988u8d986u8d8afu8d987u8d8a7' query twinkleu82eunlinku82ecallbacksu82edisplayu82ebacklinks ; localized wikipedia_apiu82eparams form form window window image mwu800u82econfigu82egetu800 'wgnamespacenumber' 6u800 ; wikipedia_apiu82epost ; varu800 root documentu82ecreateelement 'divu800' ; rootu82estyleu82epadding '15px'; just sou800 itu800 doesn'tu800 look broken morebitsu82estatusu82einit root ; wikipedia_apiu82estatelemu82estatus 'u8d8afu8d8b1 u8d8adu8d8a7u8d984 u8d8a8u8d8a7u8d8b1u8daafu8db8cu8d8b1u8db8c...' ; localized windowu82esetcontent root ; windowu82edisplay ; ; twinkleu82eunlinku82ecallbacku82eevaluate function twinkleunlinkcallbackevaluate event varu800 reason eventu82etargetu82ereasonu82evalue; ifu800 reason alert 'u8d8b4u8d985u8d8a7 u8d8a8u8d8a7u8db8cu8d8af u8d8afu8d984u8db8cu8d984 u8d8b2u8d8afu8d988u8d8afu8d986 u8d9beu8db8cu8d988u8d986u8d8afu8d987u8d8a7 u8d8b1u8d8a7 u8d985u8d8b4u8d8aeu8d8b5 u8daa9u8d986u8db8cu8d8af.' ; localized return; varu800 backlinks imageusage ; ifu800 eventu82etargetu82ebacklinks backlinks twinkleu82eunlinku82egetchecked2 eventu82etargetu82ebacklinks ; ifu800 eventu82etargetu82eimageusage imageusage twinkleu82eunlinku82egetchecked2 eventu82etargetu82eimageusage ; morebitsu82esimplewindowu82esetbuttonsenabled false ; morebitsu82estatusu82einit eventu82etarget ; varu800 pages morebitsu82earrayu82euniq backlinksu82econcat imageusage ; varu800 unlinker newu800 morebitsu82ebatchoperation 'u8d8b2u8d8afu8d988u8d8afu8d986 u8d9beu8db8cu8d988u8d986u8d8afu8d987u8d8a7u8db8c u8d988u8d8b1u8d988u8d8afu8db8c' imageusage ' u8d988 u8d985u8d988u8d8a7u8d8b1u8d8af u8d8a7u8d8b3u8d8aau8d981u8d8a7u8d8afu8d987 u8d8a7u8d8b2 u8d9beu8d8b1u8d988u8d986u8d8afu8d987'   ; localized unlinkeru82esetoption 'preserveindividualstatuslines true ; unlinkeru82esetpagelist pages ; varu800 params reason reason unlinker unlinker ; unlinkeru82erunu800 function pagename varu800 wikipedia_page newu800 morebitsu82ewikiu82epage pagename 'u8d8b2u8d8afu8d988u8d8afu8d986 u8d9beu8db8cu8d988u8d986u8d8afu8d987u8d8a7 u8d8afu8d8b1 u8d8b5u8d981u8d8adu8d987u8d994 u8c2ab' pagename 'u8c2bb' ; localized wikipedia_pageu82esetbotedit true ; unlink considered au800 floody operation varu800 innerparams .extend params ; innerparamsu82edobacklinks backlinks && backlinksu82eindexof pagename 1u800; innerparamsu82edoimageusage imageusage && imageusageu82eindexof pagename 1u800; wikipedia_pageu82esetcallbackparameters innerparams ; wikipedia_pageu82eload twinkleu82eunlinku82ecallbacksu82eunlinkbacklinks ; ; ; twinkleu82eunlinku82ecallbacks display backlinks function twinkleunlinkcallbackdisplaybacklinks apiobj varu800 xmldoc apiobju82eresponsexml; varu800 havecontent false; varu800 list namespaces iu800; ifu800 apiobju82eparamsu82eimage varu800 imageusage xmldoc .find 'query imageusage iuu800' ; list ; foru800 iu800 0u800; iu800 0u800 list ; foru800 iu800 0u800; iu800 