No description
Find a file
Daniel Agafonov 8d3edc8dec bump version
2026-07-14 12:13:08 -07:00
.github fix actions 2026-06-17 09:21:50 -07:00
.editorconfig Initial commit 2025-05-26 15:00:34 -07:00
.eslintrc Initial commit 2025-05-26 15:00:34 -07:00
.gitignore chore: init 2025-05-26 15:43:05 -07:00
.npmrc Initial commit 2025-05-26 15:00:34 -07:00
editorUtils.test.ts Fix viewport jumping 2026-07-14 12:10:55 -07:00
editorUtils.ts Fix viewport jumping 2026-07-14 12:10:55 -07:00
esbuild.config.mjs linting fixes 2026-06-16 23:23:48 -07:00
eslint.config.mjs updates 2026-06-17 09:04:07 -07:00
jest.config.js Jest tests & plugin use same removeHyperlinks() (#3) 2025-07-01 10:19:17 -07:00
LICENSE update version number 2026-06-16 23:32:25 -07:00
main.ts Fix cursor jumping 2026-07-14 11:27:38 -07:00
manifest.json bump version 2026-07-14 12:13:08 -07:00
package.json bump version 2026-07-14 12:13:08 -07:00
pnpm-lock.yaml updates 2026-06-17 09:04:07 -07:00
README.md Fix viewport jumping 2026-07-14 12:10:55 -07:00
removeLinks.test.ts add embed type filtering options 2026-07-03 17:07:46 -07:00
removeLinks.ts add embed type filtering options 2026-07-03 17:07:46 -07:00
tsconfig.json upgrade to latest dependencies 2026-06-16 23:28:39 -07:00
version-bump.mjs Initial commit 2025-05-26 15:00:34 -07:00
versions.json bump version 2026-07-14 12:13:08 -07:00

Link Remover

GitHub Downloads

Simple and lightweight plugin for Obsidian to remove hyperlinks and wikilinks from either selections or the entire file.

If you like this plugin, feel free to support the development by buying a coffee:

Buy Me A Coffee

Right in the Context Menu!

Input Output
[Google](www.google.com) Google
[text with [brackets]](https://example.com) text with [brackets]
[text with \[escaped\] brackets](https://example.com) text with \[escaped\] brackets
[OK go song](https://en.m.wikipedia.org/wiki/I_Won%27t_Let_You_Down_(OK_Go_song)) OK go song
![](image.png) REMOVED
Input Output
[[example.md]] example.md
[[example.md|alias]] alias OR REMOVED (depending on setting)
![[example.png]] REMOVED
![[example.png|300]] REMOVED
[[text with \\[escaped\\] brackets]] text with \\[escaped\\] brackets
[[text with \\[escaped\\] brackets|alias]] alias OR REMOVED (depending on setting)

Citation markup is common when pasting AI-generated search results or Wikipedia content. The entire citation is removed.

Input Output
[[1](url)] REMOVED
[[1](url), [2](url)] REMOVED
Text.[[2]](url) Text. (Wikipedia footnote, optional setting)

Easy Command and Hotkey Assignment

Advanced Features

You can choose which types of hyperlinks to remove:

  • Both Internal and External : Removes all hyperlinks
  • Internal Links Only: Only removes internal links like [Page](page.md), [Section](#heading)
  • External Links Only: Only removes external links like [Site](https://example.com)

Citation Removal

AI-style citation links ([[1](url)], [[1](url), [2](url)]) are stripped automatically whenever hyperlink removal is active (external scope).

Wikipedia-style footnotes ([[2]](url)) are removed via the optional Remove Wikipedia Citations setting (off by default).

You can whitelist specific domains or URLs that should never be removed.

Note: Whitelist matching is case-insensitive and uses partial matching.

You can whitelist specific wikilink paths that should never be removed.

Note: Wikilink whitelist uses exact matching (case-insensitive). The entire wikilink path must match the whitelist entry.

Blacklist Mode

Blacklist mode is the opposite of whitelist mode - it only removes links that match your specified blacklist, leaving all other links intact. This is useful when you want to remove specific unwanted links while preserving everything else.

  • You can specify seperate lists for both hyperlink and wikilink blacklist

Note: Use the "Remove blacklisted links" commands to activate blacklist mode. This is the only place this option is available

Release Notes

  • 1.0.0: Initial release.
  • 1.1.0: Add Notice's for hyperlink removal logic and added context menu options.
  • 1.2.0: Added unit testing (for developers) and updated hyperlink removal logic to handle more edge cases.
  • 1.2.1: Improved plugin structure, this does not affect functionality but makes it easier to maintain and extend in the future.
  • 1.3.0: Added hyperlink removal from image attachment case.
  • 2.0.0: Added WikiLinks support with option to keep or remove alias.
  • 2.1.0: Added optional setting to keep or remove hyperlink text in [text](link).
  • 2.1.1: Added hyperlink whitelist feature to preserve specified domains/URLs.
  • 2.2.0: Added hyperlink type filtering (internal/external/both) and hyperlink/wikilink whitelist feature.
  • 2.3.0: Added explicit commands to remove links from either internal or extrnal origin.
  • 2.4.0: Added sblacklist mode to explicitly remove only links you want (opposite of whitelist).
  • 2.4.2: Upgrade all dependencies to latest versions and fix all issues reported in community page.
  • 2.5.0: Added support for stripping AI and Wikipedia citation links.
  • 2.5.1: Fix issues reported in community page.
  • 3.0.0: Added support for filtering out what types of embeds to remove (image, audio, video, pdf, etc).
  • 3.2.0: Fix cursor position and viewport jumping when using the remove link command.