Jump to content

User:GrabUp/External Links Remover

From Wikipedia, the free encyclopedia
User script
External Links Remover
DescriptionRemoves all External Links from Articles Body without touching sections like External Links.
Author(s)GrabUp
SourceUser:GrabUp/External Links Remover.js

External Links Remover (source) - It helps to remove all external links from an article’s body without affecting the section titled ‘External Links’ with a single click. This tool was developed to address spammy external links that had been added to article body texts, which previously required manual removal by clicking on them individually, a process that was time-consuming.

Installation

[edit]

Automatic

[edit]
  • Step 1: Check the checkbox at Preferences → Gadgets → Advanced → Tick Install scripts without having to manually edit JavaScript files (documentation) and click Save.
  • Step 2: Click the big blue "Install" button in the infobox on the right of this page.

Manual

[edit]
{{subst:iusc|User:GrabUp/External Links Remover.js}}
[edit]

The script is designed to target all external links in the body of an article that use the format [https://example.com Example] or https://example.com. The tool will also target external links in the infoboxes if they do not use the appropriate template, which should be {{URL|https://example.com}} to be ignored by this script. The script will target all external links from the article except for those present in the "External links" section.