Download pool/shard003/JavaScript/0019012_index.js from Variable-role/sajaniemi_variable_dataset_large: direct link, hf CLI and curl.
- Browser
- Download file 505 Bytes
-
https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard003/JavaScript/0019012_index.js
- Command line
-
hf download hf://datasets/Variable-role/sajaniemi_variable_dataset_large/pool/shard003/JavaScript/0019012_index.js
-
curl -L -o 0019012_index.js https://huggingface.co/datasets/Variable-role/sajaniemi_variable_dataset_large/resolve/main/pool/shard003/JavaScript/0019012_index.js
505 Bytes
| const { EVENT } = require('../services'); | |
| const $ = require('../util'); | |
| const menu = require('electron-context-menu'); | |
| function init () { | |
| menu({ | |
| prepend: (defaultActions, params) => { | |
| const node = document.elementFromPoint(params.x, params.y); | |
| const isBookmark = node.matches('.bookmark'); | |
| return [ | |
| { | |
| label: 'Remove Bookmark', | |
| visible: isBookmark, | |
| click: () => $.trigger(EVENT.bookmark.remove, { url: params.linkURL }) | |
| } | |
| ]; | |
| } | |
| }); | |
| } | |
| module.exports = { | |
| init | |
| }; | |