{"id":28473738,"url":"https://github.com/joaopaulovieira/clappr-context-menu-plugin","last_synced_at":"2026-03-12T14:37:45.492Z","repository":{"id":44221933,"uuid":"89614853","full_name":"joaopaulovieira/clappr-context-menu-plugin","owner":"joaopaulovieira","description":"A context menu for Clappr player.","archived":false,"fork":false,"pushed_at":"2023-01-07T06:47:15.000Z","size":19219,"stargazers_count":7,"open_issues_count":14,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T03:28:42.696Z","etag":null,"topics":["clappr","clappr-player","clappr-plugin","clappr-plugins","context-menu","contextmenu"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joaopaulovieira.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-27T15:52:12.000Z","updated_at":"2024-01-22T00:49:53.000Z","dependencies_parsed_at":"2023-02-06T14:31:46.368Z","dependency_job_id":null,"html_url":"https://github.com/joaopaulovieira/clappr-context-menu-plugin","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/joaopaulovieira/clappr-context-menu-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaopaulovieira%2Fclappr-context-menu-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaopaulovieira%2Fclappr-context-menu-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaopaulovieira%2Fclappr-context-menu-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaopaulovieira%2Fclappr-context-menu-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joaopaulovieira","download_url":"https://codeload.github.com/joaopaulovieira/clappr-context-menu-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joaopaulovieira%2Fclappr-context-menu-plugin/sbom","scorecard":{"id":525801,"data":{"date":"2025-08-11","repo":{"name":"github.com/joaopaulovieira/clappr-context-menu-plugin","commit":"5b6e923473434dbbfc951f3b8789ece29a522af6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"47 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-pfq8-rq6v-vf5m","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-qrpm-p2h7-hrv2","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-r8f7-9pfq-mjmv","Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-566m-qj78-rww5","Warn: Project is vulnerable to: GHSA-hwj9-h5mp-3pm3","Warn: Project is vulnerable to: GHSA-7fh5-64p2-3v2j","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-7mwh-4pqv-wmr8","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9","Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw","Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc","Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T04:19:14.461Z","repository_id":44221933,"created_at":"2025-08-20T04:19:14.461Z","updated_at":"2025-08-20T04:19:14.461Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30428452,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T14:34:45.044Z","status":"ssl_error","status_checked_at":"2026-03-12T14:09:33.793Z","response_time":114,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clappr","clappr-player","clappr-plugin","clappr-plugins","context-menu","contextmenu"],"created_at":"2025-06-07T12:30:23.731Z","updated_at":"2026-03-12T14:37:45.457Z","avatar_url":"https://github.com/joaopaulovieira.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![](https://data.jsdelivr.com/v1/package/npm/clappr-context-menu-plugin/badge)](https://www.jsdelivr.com/package/npm/clappr-context-menu-plugin)\n[![](https://img.shields.io/npm/v/clappr-context-menu-plugin.svg?style=flat-square)](https://npmjs.org/package/clappr-context-menu-plugin)\n[![](https://img.shields.io/npm/dt/clappr-context-menu-plugin.svg?style=flat-square)](https://npmjs.org/package/clappr-context-menu-plugin)\n[![npm bundle size](https://img.shields.io/bundlephobia/min/clappr-context-menu-plugin?style=flat-square)](https://bundlephobia.com/result?p=clappr-context-menu-plugin)\n![Travis (.com)](https://img.shields.io/travis/com/joaopaulovieira/clappr-context-menu-plugin?style=flat-square)\n![Coveralls github](https://img.shields.io/coveralls/github/joaopaulovieira/clappr-context-menu-plugin?style=flat-square)\n[![](https://img.shields.io/github/license/joaopaulovieira/clappr-context-menu-plugin?style=flat-square)](https://github.com/joaopaulovieira/clappr-context-menu-plugin/blob/master/LICENSE)\n\n# Clappr context menu plugin\n![screenshot](public/images/screenshot.png)\n\n## Demo\nhttps://joaopaulovieira.github.io/clappr-context-menu-plugin/\n\n## Table of Contents\n- [Features](https://github.com/joaopaulovieira/clappr-context-menu-plugin#Features)\n- [Usage](https://github.com/joaopaulovieira/clappr-context-menu-plugin#Usage)\n- [Configuration](https://github.com/joaopaulovieira/clappr-context-menu-plugin#Configuration)\n- [Development](https://github.com/joaopaulovieira/clappr-context-menu-plugin#Development)\n\n## Features\n- Default actions:\n  - Copy URL of the site where `Clappr` is playing;\n  - Copy URL with the current time of the video;\n  - Enable/Disable loop state;\n- Default info:\n  - `Clappr` version;\n- Support to add new custom actions;\n- Support to add custom style;\n\n## Usage\nYou can use it from JSDelivr:\n```\nhttps://cdn.jsdelivr.net/npm/clappr-context-menu-plugin@latest/dist/clappr-context-menu-plugin.min.js\n```\n```properties\n# Using yarn\nyarn add clappr-context-menu-plugin\n\n# Using npm\nnpm i clappr-context-menu-plugin\n```\nThen just add `ContextMenuPlugin` into the list of plugins of your player instance\n```javascript\nvar player = new Clappr.Player({\n  source: 'http://your.video/here.mp4',\n  plugins: [ContextMenuPlugin]\n});\n```\n\n## Configuration\nThe options for the plugin go in the `contextMenu` property as shown below\n```javascript\nvar player = new Clappr.Player({\n  source: 'http://your.video/here.mp4',\n  plugins: [ContextMenuPlugin],\n  contextMenu: {\n    menuItems: [`copyURL`, `copyURLCurrentTime`, `loop`, `playerVersion`],\n    extraOptions: [\n      {\n        name: 'test',\n        label: 'Test Label',\n        //optional\n        callback: function() {\n          console.log('A absolutely awesome extra context menu item action')\n        }\n      }\n    ],\n    customStyle: {\n      container: {\n        'display': 'block'\n      },\n      list: {\n        'background-color': 'gray'\n      },\n      items: {\n        'color': 'yellow'\n      }\n    }\n  }\n});\n```\n### `menuItems {Array}`\nAn array where each item is a name that matches one of the default menu items. The valid values are: `['copyURL', 'copyURLCurrentTime', 'loop', 'playerVersion']`\n\n### `extraOptions {Array}`\nAn array of items to add on the context menu. Each context menu item on this array is an object which contains the parameters `name`, `label`, and `callback`\n* #### `name {String}`\n  Name of the extra item\n  \n* #### `label {String}`\n  The label that will be displayed on the menu\n  \n* #### `callback {Function}`\n  A method that will be triggered when clicking on the item label. This option is not required if your desired menu item not have one action to call on click (like the `playerVersion` default  menu item)\n\n### `customStyle {Object}`\nStyles to apply to mapped elements on the context menu. This option is an object with the parameters `container`, `list` and `items`\n* #### `container {Object}`\n  Attributes that will be applied in the main element. This option is an object that receives CSS attributes like the options example at the beginning of this section\n\n* #### `list {Object}`\n  Attributes that will be applied in the `\u003cul\u003e` element. This option is an object that receives CSS attributes like the options example at the beginning of this section\n\n* #### `items {Object}`\n  Attributes that will be applied in each `\u003cli\u003e` element. This option is an object that receives CSS attributes like the options example at the beginning of this section\n\n## Development\nInstall dependencies: `npm install`\n\nRun: `npm start`\n\nTest: `npm test`\n\nLint: `npm run lint`\n\nBuild: `npm run build`\n\nMinified version: `npm run release`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaopaulovieira%2Fclappr-context-menu-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoaopaulovieira%2Fclappr-context-menu-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoaopaulovieira%2Fclappr-context-menu-plugin/lists"}