MediaWiki:Common.js

From PSP Developer wiki
Revision as of 08:37, 4 January 2025 by Derf (talk | contribs) (Created page with "document.querySelectorAll("h2, h3, h4, h5, h6").forEach(function(t){t.addEventListener("contextmenu",function(e){navigator.clipboard.writeText(window.location.href.split("#")[0]+"#"+t.firstElementChild.id)})});$(":not(.references li) ol li").click(function(a){a.stopPropagation(),$(this).hasClass("highlighted")?($(this).removeClass("highlighted"),$(this).find("li").removeClass("highlighted")):($(this).addClass("highlighted"),$(this).find("li").addClass("highlighted"))});d...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.
document.querySelectorAll("h2, h3, h4, h5, h6").forEach(function(t){t.addEventListener("contextmenu",function(e){navigator.clipboard.writeText(window.location.href.split("#")[0]+"#"+t.firstElementChild.id)})});$(":not(.references li) ol li").click(function(a){a.stopPropagation(),$(this).hasClass("highlighted")?($(this).removeClass("highlighted"),$(this).find("li").removeClass("highlighted")):($(this).addClass("highlighted"),$(this).find("li").addClass("highlighted"))});document.querySelectorAll("h1").forEach(function(e){e.addEventListener("contextmenu",function(e){navigator.clipboard.writeText(window.location.href.split("/psp/")[1])})});