User:Magnus Manske/global.js

From Meta, a Wikimedia project coordination wiki

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
//var autodesc_on_wikidata=true;
//mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Magnus Manske/autodesc.js&action=raw&ctype=text/javascript");


/*
$(document).ready ( function () {
	if ( typeof mw.config.values.wgWikibaseItemId == 'undefined' && mw.config.values.wgAction == 'view' && mw.config.values.wgNamespaceNumber == 0 && mw.config.values.wgDBname != 'wikidatawiki' ) {
		var portletLink = mw.util.addPortletLink( 'p-tb', '#', 'Create Wikidata item','t-wd_create');
		$(portletLink).click ( function () {
			var url = "https://tools.wmflabs.org/wikidata-todo/duplicity.php?wiki=" + mw.config.values.wgDBname + "&page=" + encodeURIComponent(mw.config.values.wgTitle) ;
			window.location.href = url ;
			return false ;
		} ) ;
	}
})
*/