Jump to content

User:Zhaofeng Li/Reflinks.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Zhaofeng Li (talk | contribs) at 04:21, 3 November 2014 (load the script only on content pages). 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.
// To contribute to the script, use https://github.com/zhaofengli/reflinks/blob/master/scripts/wikitoolbox.js
if ( wgIsArticle ) {
	var script = $( "<script>" );
	script.attr( "src", "https://tools.wmflabs.org/fengtools/reflinks/scripts/wikitoolbox.js" );
	script.attr( "type", "text/javascript" );
	$( "head" ).append( script );
}