User:Sur/common.js: Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

19 September 2024

  • curprev 01:4401:44, 19 September 2024Sur talk contribs 1,326 bytes +1,326 Created page with "// Wait for the document to be ready mw.hook('wikipage.content').add(function ($content) { // Check if the input box exists on the page if (document.getElementById('userInputBox')) { // Function to update the variable function updateVariable() { var inputValue = document.getElementById('userInputBox').value; // Make an API call to update the page variable new mw.Api().postWithToken('csrf', {..."