User:DemonDays64/Scripts/Dumb quotes.js: Difference between revisions

Content deleted Content added
Implement negative lookbehind for File: without a closing ]] to avoid changing file links per Keith D request (see User talk:DemonDays64#Dumb Quotes; will test in-browser but in Regexr it seems good)
Add note about regex
 
Line 1:
// See the documentation! Hope you like the script :-)
// NOTE: Uses a regex feature implemented fairly recently in some browsers (https://caniuse.com/?search=Lookbehind):
// Chrome: 10/2017 | Firefx: 6/2020 | Edge: 1/2020 | Safari: 3/2023 | Opera: 11/2017
// If running older browsers I believe it will work normally except that it will modify File links. The previous versions did not have this feature and used widely-supported Regex.
mw.loader.using('mediawiki.util', function () {