Jump to content

User:Xiplus/js/editchangetags-link.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)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
(function(){

$(".mw-revdelundel-link").each(function(i, e){
	var url = $(e).find("a").attr("href");
	var link = $("<a>")
	.attr({
		href: mw.util.wikiScript()+"?"+$.param({
			action: 'editchangetags',
			type: mw.util.getParamValue('type', url),
			ids: mw.util.getParamValue('ids', url)
		}),
	})
	.text("編輯標籤")
	.insertAfter($(e).find("a").last())
	.before(" | ");
});

})();