User:Jmcgnh/no-edit-non-user-redlink.js

// @namespace   YourUserName // @version     1.1 // @description Removes the action=edit parameter from red links (excluding User: namespace) // @match       https://en.wikipedia.org/* // @grant       none // created using Microsoft CoPilot seeded with User:Awesome Aasim/noeditredlinks.js // ==/UserScript==

(function {   'use strict';

// Get all red links const redLinks = document.querySelectorAll('a.new, new a');

// Remove the action=edit parameter (excluding User: namespace) redLinks.forEach(link => {       if (!link.href.includes('title=User:')) {            link.href = link.href.replace(/&action=edit/g, '');        }    }); });