question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plugin: add rel=noopener on all external links

See original GitHub issue

eleventy-plugin-rss already transforms all urls to absolute urls for the RSS feed. Reuse a bunch of that, probably. https://github.com/11ty/eleventy-plugin-rss/blob/master/src/htmlToAbsoluteUrls.js

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
Snugugcommented, Feb 10, 2020

Hey all! If people are still looking for a solution to this, I’ve just published https://www.npmjs.com/package/eleventy-plugin-safe-external-links that’ll allow you to add noopener and/or noreferrer to any link matching a given RegExp pattern, so you can define your own external links (by default, assumes links starting with http(s)://

4reactions
nhoizeycommented, Oct 5, 2020

@binyamin if you do it during the build, it is done once for all your users, and they don’t have this additional JS to run, it might enhance performance at least on low end mobile devices.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add rel=”noopener” to external links - WordPress.org
I'm not sure all users would like to always have noopener but we can definitely add an on/off option for it Added to...
Read more >
A way to add `rel="noopener"` or `rel="noreferrer"` to any ...
Is there a way to add rel="noopener" or rel="noreferrer" to any external links? The only option is nofollow. September 30, ...
Read more >
[Joomla] How to add rel="noopener noreferrer" to all external ...
This tutorial guides you about how to add rel="noopener-noreferrer" for all external links Joomla (Joomla 3 and Joomla 4) web.dev Google.
Read more >
Web Security: add rel=noopener to external links - gHacks
Don't touch my tabs! (rel=noopener) is a Firefox add-on that adds rel="noopener" to external links on sites open in Firefox automatically.
Read more >
how to add rel="noopener" or rel="noreferrer" to all external ...
There are external links pointing to plugins etc and there are 000s of external links to update manually. Does anyone know how to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found