
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@oddbird/popup-polyfill
Advanced tools
This polyfills the HTML popUp
attribute and showPopUp
/hidePopUp
methods onto HTMLElement.
The simplest, recommended way to install the polyfill is to copy it into your project.
Download popup.iife.min.js
from
unpkg.com and add it
to the appropriate directory in your project. Then, include it where necessary
with a <script>
tag:
<script src="/path/to/popup.iife.min.js" type="module"></script>
You will also likely need the CSS file, which supplies some default styles.
Download the popup.css
from
unpkg.com and add it
to the appropriate directory in your project. Then, include it where necessary
with a <link rel=stylesheet>
tag:
<link rel="stylesheet" src="/path/to/popup.css" />
For more advanced configuration, you can install with npm:
npm install @oddbird/popup-polyfill
After installing, you’ll need to use appropriate tooling to use
node_modules/@oddbird/popup-polyfill/dist/index.js
(or .min.js
).
You will also likely need to include the CSS stylesheet which is found in
node_modules/@oddbird/popup-polyfill/dist/popup.css
.
If you want to manually apply the polyfill, you can also import the
isSupported
and apply
functions from
node_modules/@oddbird/popup-polyfill/dist/popup.js
file.
For prototyping or testing, you can use the npm package via a Content Delivery Network. Avoid using JavaScript CDNs in production, for many good reasons such as performance and robustness.
<script
src="https://cdn.jsdelivr.net/npm/@oddbird/popup-polyfill@latest"
crossorigin="anonymous"
defer
></script>
After installation the polyfill will automatically add the correct methods and attributes to the HTMLElement class.
Visit our contribution guidelines.
0.0.2: 2022-10-28
FAQs
Popup Polyfill
The npm package @oddbird/popup-polyfill receives a total of 15 weekly downloads. As such, @oddbird/popup-polyfill popularity was classified as not popular.
We found that @oddbird/popup-polyfill demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.