User:Shahadat/script-redlinks
User:Shahadat/script-redlinks.js is a script that removes red links from an article. Per JP:REDLINK, only remove them if there are too many red links for an article, or if one or more of the links present (regardless of number) are inappropriate for any reason.
Installation
To install the script, add:
importScript('User:Shahadat/script-functions.js'); importScript('User:Shahadat/script-redlinks.js');
>>> User:Shahadat/script-functions.js is required to include multiple shared functions, and the custom "TV Scripts" header, many of which are used identically in a few of my other scripts - you only need to include it in Special:MyPage/common.js once. Follow the instructions at User:Shahadat/script-functions for installing scripts by Shahadat. <<<
There will be a "Remove redlinks" link in the toolbox on the left on every article. Click it to collect the redlinks and save them - if there are none, you will be alerted and the script will stop.
You will be redirected to edit mode, and the script will automatically remove the saved redlinks from the article. Regular redlinks will be converted to unlinked text, category redlinks will be removed. An edit summary will be provided. If there were no red links removed, you will be alerted again - this may be a case of the red links residing in the article's navigational boxes - check there. Save the page manually, after manually removing instances of {{cleanup red links}}, etc.
Bugs
Please report any bugs on the talk page of the script's creator.
See also
Script Attribution
![]() | This script was manually imported from Wikipedia in compliance with their CC-BY-SA license. This script is utilized either partially or in full, incorporating corrections, modifications, or imported from the original script. For details regarding the original script and its creator, please refer to the following link: https://en.wikipedia.org/wiki/User:Alex_21/script-redlinks |