
Research
/Security News
60 Malicious Ruby Gems Used in Targeted Credential Theft Campaign
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
gatsby-plugin-accessibilityjs
Advanced tools
Adds accessibility.js snippet to all renderered pages
Adds Github's accessibility.js snippet to all rendered pages.
yarn add gatsby-plugin-accessibilityjs
// in gatsby-config.js
plugins: [`gatsby-plugin-accessibilityjs`];
Defaults:
// in gatsby-config.js
plugins: [
{
resolve: `gatsby-plugin-accessibilityjs`,
options: {
injectStyles: `
.accessibility-error {
border: 3px solid #f00;
}
`,
errorClassName: `accessibility-error`,
onError: (error) => {
// do something with the error
},
},
},
];
// in gatsby-config.js
plugins: [
{
resolve: `gatsby-plugin-accessibilityjs`,
options: {
injectStyles: `
.accessibility-error {
box-shadow: 0 0 3px 1px #f00;
background-color: rgba(255, 0, 0, 0.25);
position: relative;
}
.accessibility-error:before {
content: "A11Y";
position: absolute;
top: 0;
left: 0;
color: #fff;
font-size: 10px;
background-color: rgba(255, 0, 0, 0.5);
transform: translateY(-100%);
}
`,
},
},
];
Don't modify the DOM at all, just log errors with the default onError
logger.
// in gatsby-config.js
plugins: [
{
resolve: `gatsby-plugin-accessibilityjs`,
options: {
injectStyles: false,
errorClassName: false,
},
},
];
FAQs
Adds accessibility.js snippet to all renderered pages
The npm package gatsby-plugin-accessibilityjs receives a total of 63 weekly downloads. As such, gatsby-plugin-accessibilityjs popularity was classified as not popular.
We found that gatsby-plugin-accessibilityjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.