Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
(Created page with "→‎Any JavaScript here will be loaded for all users on every page load.: let script = document.createElement('script'); script.src = "https://cse.google.com/cse.js?cx=717c1fd6e48dc4907"; document.head.appendChild(script)")
 
(Automation: Updated raw file content from content repo.)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Any JavaScript here will be loaded for all users on every page load. */
// Google search
let script = document.createElement('script');
var script = document.createElement('script');
script.src =
script.src = "https://cse.google.com/cse.js?cx=717c1fd6e48dc4907";
"https://cse.google.com/cse.js?cx=717c1fd6e48dc4907";
document.head.appendChild(script);
document.head.appendChild(script)

Latest revision as of 17:53, 1 September 2024

// Google search
var script = document.createElement('script');
script.src = "https://cse.google.com/cse.js?cx=717c1fd6e48dc4907";
document.head.appendChild(script);