Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@sebgroup/document-write-intervene
Advanced tools
Prevent document write from writing to your document and instead insert a new script to the dom.
Overwrites document.write
function and will prevent it from clearing your document contents due to how document.write
works when the document has been loaded.
It checks if the markup is a <script>
tag and will load it asynchronous.
Otherwise it will insert the contents using insertAdjacentHTML
on the body
Tested inside an Angular project.
It should work seamlessly with a React project.
Otherwise you could have a look at browserify
to integrate it in your project
Install via npm:
$ npm install @sebgroup/document-write-intervene
const { intervene } = require('@sebgroup/document-write-intervene')
intervene()
Unit tests:
$ npm t
$ npm run webdriver:chrome
and then
$ npm run e2e:chrome
$ npm run webdriver:ie
and then
$ npm run e2e:ie
FAQs
Prevent document write from writing to your document and instead insert a new script to the dom.
We found that @sebgroup/document-write-intervene demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.