Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
importScript('User:ערן/autocomplete.js');// Backlink: [[User:ערן/autocomplete.js]]importScript('User:Dr pda/prosesize.js');// Backlink: [[User:Dr pda/prosesize.js]]importScript('User:Headbomb/unreliable.js');// Backlink: [[User:Headbomb/unreliable.js]]importScript('User:Cobaltcigs/DiffPreviewFindLine.js');// Backlink: [[User:Cobaltcigs/DiffPreviewFindLine.js]]//importScript('User:NguoiDungKhongDinhDanh/FormattedEditRequest.js'); // Backlink: [[User:NguoiDungKhongDinhDanh/FormattedEditRequest.js]]importScript('User:Enterprisey/diff-permalink.js');// Backlink: [[User:Enterprisey/diff-permalink.js]]importScript('User:Enterprisey/fancy-diffs.js');// Backlink: [[User:Enterprisey/fancy-diffs.js]]importScript('User:Nardog/RefRenamer.js');// Backlink: [[User:Nardog/RefRenamer.js]]importScript('User:MaterialWorks/Scripts/sectionLinks.js');// Backlink: [[User:MaterialWorks/Scripts/sectionLinks.js]]importScript('User:Nardog/Consecudiff.js');// Backlink: [[User:Nardog/Consecudiff.js]]importScript('User:Salix alba/Citoid.js');importScript('User:Dixtosa/userscriptInterwikiLink.js');// Backlink: [[User:Dixtosa/userscriptInterwikiLink.js]]// ==UserScript==// @name Wikipedia Diff Search// @namespace https://en.wikipedia.org/wiki/User:Satnam2408// @version 0.1// @description Adds a Diff Search option to the Wikipedia menu// @author Satnam2408// @match *://en.wikipedia.org/*// @grant none//The script is working properly in the Vector skin.// ==/UserScript==(function(){'use strict';// Create a new menu itemvardiffSearchMenuItem=document.createElement('li');diffSearchMenuItem.innerHTML='<a href="#" id="diffSearchLink">Diff Search</a>';// Add an event listener to the menu itemdiffSearchMenuItem.addEventListener('click',function(event){event.preventDefault();// Prompt the user for two revision IDs to comparevarfromRevision=prompt('Enter the first revision ID:');vartoRevision=prompt('Enter the second revision ID:');// Check if both revision IDs are providedif(fromRevision&&toRevision){// Redirect to the diff pagewindow.location.href='/w/index.php?title=Special:Diff/'+toRevision+'/'+fromRevision;}});// Add the menu item to the "More" menuvarmoreMenu=document.querySelector('#p-cactions ul');moreMenu.appendChild(diffSearchMenuItem);})();importScript('User:Enterprisey/offset-history-link.js');// Backlink: [[User:Enterprisey/offset-history-link.js]]