{"id":32232194,"url":"https://github.com/epages-de/scribe-plugin-enhanced-link-tooltip","last_synced_at":"2025-10-22T11:54:17.150Z","repository":{"id":28933606,"uuid":"32459332","full_name":"ePages-de/scribe-plugin-enhanced-link-tooltip","owner":"ePages-de","description":"A [Scribe](https://github.com/guardian/scribe) plugin for doing a Medium/Google Docs style tooltip UI instead of a prompt for inserting links.","archived":false,"fork":false,"pushed_at":"2017-04-21T10:13:36.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":6,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-10-22T11:54:09.571Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ePages-de.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":"2015-03-18T13:09:47.000Z","updated_at":"2017-04-21T10:11:47.000Z","dependencies_parsed_at":"2022-08-30T20:01:01.873Z","dependency_job_id":null,"html_url":"https://github.com/ePages-de/scribe-plugin-enhanced-link-tooltip","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/ePages-de/scribe-plugin-enhanced-link-tooltip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ePages-de%2Fscribe-plugin-enhanced-link-tooltip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ePages-de%2Fscribe-plugin-enhanced-link-tooltip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ePages-de%2Fscribe-plugin-enhanced-link-tooltip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ePages-de%2Fscribe-plugin-enhanced-link-tooltip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ePages-de","download_url":"https://codeload.github.com/ePages-de/scribe-plugin-enhanced-link-tooltip/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ePages-de%2Fscribe-plugin-enhanced-link-tooltip/sbom","scorecard":{"id":363360,"data":{"date":"2025-08-11","repo":{"name":"github.com/ePages-de/scribe-plugin-enhanced-link-tooltip","commit":"c0fe7776ad8f8070495b883e1e3019d21f4feb9d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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":"Code-Review","score":0,"reason":"Found 1/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":"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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT 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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T11:19:22.213Z","repository_id":28933606,"created_at":"2025-08-18T11:19:22.214Z","updated_at":"2025-08-18T11:19:22.214Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280431499,"owners_count":26329786,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-22T02:00:06.515Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-10-22T11:54:16.215Z","updated_at":"2025-10-22T11:54:17.143Z","avatar_url":"https://github.com/ePages-de.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scribe-plugin-enhanced-link-tooltip\n\nA [Scribe](https://github.com/guardian/scribe) plugin for doing a Medium/Google Docs style tooltip UI instead of a prompt for inserting links.\nInspired by [artsy/scribe-plugin-link-tooltip](https://github.com/artsy/scribe-plugin-link-tooltip), but with a few modifications, namely:\n* no jQuery dependency\n* custom template (think of l10n)\n* custom namespace for CSS classes and events\n* pluggable link sanitizer\n* tested with multiple Scribe instances\n\n## Usage\n\nSee the [source code](https://github.com/ePages-de/scribe-plugin-enhanced-link-tooltip/blob/master/example.js#L117) of the [demo](http://ePages-de.github.io/scribe-plugin-enhanced-link-tooltip/example.html) (`example.html`, `example.js`).\n\nJavascript (don't let yourself scare by the template stuff)\n````javascript\n// Replace with your templating solution of choice\nvar scribePluginLinkTooltipTemplate = '' + \n    '\u003cdiv data-scribe-plugin-link-tooltip-role=\"arrow\"\u003e\u003c/div\u003e' +\n    '\u003ca data-scribe-plugin-link-tooltip-role=\"link\"' +\n    'class=\"scribe-plugin-link-tooltip-show-on-view\"\u003e\u003c/a\u003e' +\n    '\u003cinput data-scribe-plugin-link-tooltip-role=\"input\"' +\n    'class=\"scribe-plugin-link-tooltip-show-on-edit\" placeholder=\"Paste or type a link\"/\u003e' +\n    '\u003cbutton data-scribe-plugin-link-tooltip-role=\"submit\" type=\"submit\"' +\n    'class=\"scribe-plugin-link-tooltip-show-on-edit\"\u003eApply\u003c/button\u003e' +\n    '\u003cbutton data-scribe-plugin-link-tooltip-role=\"edit\" type=\"button\"' +\n    'class=\"scribe-plugin-link-tooltip-show-on-view\"\u003eChange\u003c/button\u003e' +\n    '\u003cbutton data-scribe-plugin-link-tooltip-role=\"remove\" type=\"button\"' +\n    'class=\"scribe-plugin-link-tooltip-show-on-view\"\u003eRemove\u003c/button\u003e';\n\nscribe.use(scribePluginLinkTooltipCommand({\n    innerMarkup: scribePluginLinkTooltipTemplate,\n    namespace: 'scribe-plugin-link-tooltip',\n    linkSanitizer: function (str) {\n        // Try to catch common cases of users forgetting to add \"http://\" in front,\n        // but err on the safe side: if it looks even remotely like a hostname, just stop.\n        // Feel free to add your favourite contry's TLD as long as it is not a common file extension.\n        return str.match(/^\\w[\\w\\-_\\.]+\\.(co|uk|com|org|net|gov|biz|info|us|eu|de|fr|it|es|pl|nz)/i) ?\n        'http://' + str :\n            str;\n    }\n}));\n````\n\nThese few CSS styles are more or less required to make the plugin work:\n````css\n.scribe-plugin-link-tooltip-hidden {\n  visibility: hidden;\n}\n\n.scribe-plugin-link-tooltip {\n  z-index: 1;\n  white-space: nowrap;\n  transform: translateY(14px);\n}\n\n.scribe-plugin-link-tooltip \u003e * {\n  display: inline-block;\n}\n\n.scribe-plugin-link-tooltip-state-edit .scribe-plugin-link-tooltip-show-on-view,\n.scribe-plugin-link-tooltip-state-view .scribe-plugin-link-tooltip-show-on-edit {\n  display: none;\n}\n\n[data-scribe-plugin-link-tooltip-role=\"arrow\"] {\n  position: absolute;\n  bottom: 99%;\n  left: 50%;\n  height: 0;\n  width: 0;\n  border: 14px solid transparent;\n}\n````\n\n## Positioning\n\nThe tooltip will prepend itself to the scribe element's parent element and use `position: absolute`, `top`, and `left` to position itself close to the text you're highlighting.\nTherefore that element will get `position: relative` if (and only if) its current position is `static`.\n\n## TODO\n\n* Tests\n\n# License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepages-de%2Fscribe-plugin-enhanced-link-tooltip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fepages-de%2Fscribe-plugin-enhanced-link-tooltip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fepages-de%2Fscribe-plugin-enhanced-link-tooltip/lists"}