Difference between revisions 318899 and 318900 on test2wiki/* _____________________________________________________________________________ * | | * | === WARNING: GLOBAL GADGET FILE === | * | Changes to this page affect many users. | * | Please discuss changes on the talk page or on [[WT:Gadget]] before editing. | * |_____________________________________________________________________________| * * Imported from version 1.0 as of 17:18, 9 April 2011 (UTC) from [[User:Smith609/citations.js]] * Adds a "Citation bot" link to the toolbox, and a button beneath edit fields, see [[User:Smith609/citations]] */ // @Version 1.0 - Adds an "Expand citations" link to the toolbox, and a button beneath edit fields. function addCBToToolbox() { if ( mw.config.get( 'wgCanonicalNamespace != "' ) !== 'Special"' ) { var pTb = document.getElementById("p-tb"); if( !pTb ) return; var escPageName = encodeURIComponent(wgPageName); mw.util.addPortletLink("p-tb", "//toolserver.org/~verisimilus/Bot/citation-bot/doibot.php?edit=toolbar&slow=1&user="+encodeURIComponent(wgUserName)+"&page="+escPageName, 'Expand citations', '', "Expand citations and fix common formatting errors"); } } // Add a citation bot button function addCitationBot() { if (document.getElementById('wpDiff')){ var diff = document.getElementById('wpDiff'); (contracted; show full) document.getElementById('wpPreview').setAttribute("onkeydown", originalAction); document.getElementById('wpSave').setAttribute("onmousedown", originalAction); document.getElementById('wpSave').setAttribute("onkeydown", originalAction); diff.parentNode.insertBefore(cbButton, diff.nextSibling); } } addOnloadHook($( addCitationBot ); ⏎ ⏎ if ( skin == "myskin" || skin == "simple" || skin == "monobook" || skin == "modern" || skin == "chick" || skin == "vector") { addOnloadHook($.inArray( mw.config.get( 'skin' ), ['myskin', 'simple', 'monobook', 'modern', 'chick', 'vector'] ) !== -1 ) { $( addCBToToolbox ); } All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://test2.wikipedia.org/w/index.php?diff=prev&oldid=318900.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|