maybethisisru / eleventy-plugin-safe-external-links Goto Github PK
View Code? Open in Web Editor NEWStop XSS attacks by preventing access to origin window for links that open in a new tab/window.
License: Apache License 2.0
Stop XSS attacks by preventing access to origin window for links that open in a new tab/window.
License: Apache License 2.0
The setup instructions in the README are broken (and they are broken in the upstream repo as well).
const
assignment, copy/paste error from another plugin, invalid plugin (not @hirusi/...
Should be:
const safeExternalLinks = require("@hirusi/eleventy-plugin-safe-external-links")
module.exports = function (eleventyConfig) {
...snip...
eleventyConfig.addPlugin(safeExternalLinks, {
pattern: "https{0,1}://", // RegExp pattern for external links
noopener: true, // Whether to include noopener
noreferrer: false, // Whether to include noreferrer
files: [
// What output file extensions to work on
".html",
],
})
...snip...
}
Most of these issues also apply to the README in the upstream repo where these issues seem to have originated:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.