Jump to content

MediaWiki:Common.js

From A Modern Way To Be Known
Revision as of 19:13, 17 December 2025 by Lokesh (talk | contribs)

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.
// TEST: Check if Common.js can inject schema
console.log("TEST: Common.js is running");

const testSchema = {
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "TEST SCHEMA – BharatWikipedia"
};

const testScript = document.createElement('script');
testScript.type = 'application/ld+json';
testScript.text = JSON.stringify(testSchema);
document.head.appendChild(testScript);