
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@blockly/block-extension-tooltip
Advanced tools
A Blockly block extension that adds support for custom tooltip rendering.
A Blockly block extension that adds support for custom tooltip rendering.
WARNING: This plugin is deprecated. It is not compatible with recent versions of Blockly (v7.20211209.0 or above). As of Blockly v8, this plugin is no longer necessary as Blockly supports custom tooltip rendering. For an example, see the custom tooltip demo. Please uninstall this plugin and update Blockly to v8 or above. This plugin may be removed in the future.
Note:
yarn add @blockly/block-extension-tooltip
npm install @blockly/block-extension-tooltip --save

Register the tooltip extension:
import * as Blockly from 'blockly';
import {registerTooltipExtension} from '@blockly/block-extension-tooltip';
registerTooltipExtension((block) => {
// Custom tooltip rendering method.
const el = document.createElement('div');
el.className = 'my-custom-tooltip';
el.textContent = block.getTooltip();
return el;
}, 'custom-tooltip-extension');
Add the extension to your block definition using JSON:
Blockly.defineBlocksWithJsonArray([
{
"type": "my-block",
"extensions": ["custom-tooltip-extension"]
}
]);
or add the extension to your block definition using JavaScript:
Blockly.Blocks['my-block'] = {
init: function() {
Blockly.Extensions.apply('custom-tooltip-extension', this, false);
},
};
Apache 2.0
FAQs
A Blockly block extension that adds support for custom tooltip rendering.
We found that @blockly/block-extension-tooltip demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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 discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.