| You take full responsibility for any actions taken using External Links Remover. You must read and abide by all relevant Wikipedia policies when using this tool; failure to do so may result in you losing access to the tool or being blocked from editing. |
| External Links Remover | |
|---|---|
| Description | Removes all External Links from Articles Body without touching sections like External Links. |
| Author | GrabUp |
| Source | User: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
editAutomatic
edit- Step 1: Check the checkbox at Preferences → Gadgets → Advanced →
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- Add the following to Special:MyPage/common.js (or your skin-specific js, if you prefer):
{{subst:iusc|User:GrabUp/External Links Remover.js}}
External Links targeting
editThe 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.