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 item
var diffSearchMenuItem = document.createElement('li');
diffSearchMenuItem.innerHTML = '<a href="#" id="diffSearchLink">Diff Search</a>';
// Add an event listener to the menu item
diffSearchMenuItem.addEventListener('click', function(event) {
event.preventDefault();
// Prompt the user for two revision IDs to compare
var fromRevision = prompt('Enter the first revision ID:');
var toRevision = prompt('Enter the second revision ID:');
// Check if both revision IDs are provided
if (fromRevision && toRevision) {
// Redirect to the diff page
window.location.href = '/w/index.php?title=Special:Diff/' + toRevision + '/' + fromRevision;
}
});
// Add the menu item to the "More" menu
var moreMenu = document.querySelector('#p-cactions ul');
moreMenu.appendChild(diffSearchMenuItem);
})();
importScript( 'User:Enterprisey/offset-history-link.js' ); // Backlink: [[User:Enterprisey/offset-history-link.js]]