{"id":16332933,"url":"https://github.com/eight04/select-text-inside-a-link-like-opera","last_synced_at":"2025-10-31T05:39:32.048Z","repository":{"id":21267299,"uuid":"24582992","full_name":"eight04/select-text-inside-a-link-like-opera","owner":"eight04","description":"Disable link dragging and select text.","archived":false,"fork":false,"pushed_at":"2020-01-15T00:47:29.000Z","size":82,"stargazers_count":26,"open_issues_count":3,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T19:22:20.540Z","etag":null,"topics":["javascript","userscript"],"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/eight04.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":"2014-09-29T06:48:10.000Z","updated_at":"2024-12-21T10:37:04.000Z","dependencies_parsed_at":"2022-09-14T13:53:17.438Z","dependency_job_id":null,"html_url":"https://github.com/eight04/select-text-inside-a-link-like-opera","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eight04%2Fselect-text-inside-a-link-like-opera","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eight04%2Fselect-text-inside-a-link-like-opera/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eight04%2Fselect-text-inside-a-link-like-opera/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eight04%2Fselect-text-inside-a-link-like-opera/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eight04","download_url":"https://codeload.github.com/eight04/select-text-inside-a-link-like-opera/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244249335,"owners_count":20422954,"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","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":["javascript","userscript"],"created_at":"2024-10-10T23:33:50.795Z","updated_at":"2025-10-31T05:39:31.971Z","avatar_url":"https://github.com/eight04.png","language":"JavaScript","funding_links":[],"categories":["⚙️ Userscripts."],"sub_categories":[],"readme":"Select text inside a link like Opera\n====================================\n\n[![Build Status](https://travis-ci.com/eight04/select-text-inside-a-link-like-opera.svg?branch=master)](https://travis-ci.com/eight04/select-text-inside-a-link-like-opera)\n\nBy installing this script, you can select text inside a link without dragging them around if the cursor was moved horizontally.\n\n![screenshot](https://i.imgur.com/f7TgRur.png)\n![screenshot](https://i.imgur.com/NSqXG5n.png)\n\nInstallation\n------------\n\n[Greasy Fork](https://greasyfork.org/en/scripts/789-select-text-inside-a-link-like-opera)\n\nCompatibility\n-------------\n\nThis script supports Firefox and Chrome. However, things become tricky in Firefox.\n\nIn Firefox, we can't detect the movement of the cursor *after* the mousedown event, so we actually use the movement *before* the mouse click. If you move the cursor vertically to a link, stop, then drag the link horizontally, the script will detect the movement as vertical and it won't prevent the link from being dragged.\n\nChangelog\n---------\n\n* 6.0.0 (Jan 15, 2019)\n\n  - Refactor.\n  - Breaking: add a better movement tracker and always use it.\n\n* 5.0.4 (Dec 22, 2019)\n\n  - Fix: don't initiate multiple instances.\n\n* 5.0.3 (Jun 6, 2019)\n\n  - Fix: handle undraggable links.\n\n* 5.0.1 (Jan 22, 2019)\n\n  - Fix: compatible with XML/XHTML pages.\n\n* 5.0.0 (Jan 20, 2019)\n\n  - Rewrite.\n  - Fix: don't collapse selection if the target is not a link.\n\n* 4.0.12 (Nov 18, 2014)\n\n\t- Enhance: Only prevent click if text is selected.\n  \n* 4.0.11 (Nov 18, 2014)\n\n\t- Fix: Form button issue.\n  \n* 4.0.10 (Nov 17, 2014)\n\n\t- Fix: DeviantArt issue. Use capture on \"mousedown\".\n  \n* 4.0.9 (Nov 17, 2014)\n\n\t- Fix: Firefox clicking issue. (This might break some sites!)\n  \n* 4.0.8 (Nov 17, 2014)\n\n\t- Fix: No effect in firefox's responsive design viewer.\n  \n* 4.0.7 (Nov 17, 2014)\n\n\t- Support Chrome!\n  \n* 4.0.6 (Nov 12, 2014)\n\n\t- Fix: Unable to click links after selecting.\n  \n* 4.0.5 (Nov 11, 2014)\n\n\t- Fix: Unable to drag image.\n  \n* 4.0.4 (Oct 30, 2014)\n\n\t- Fix: Unable to drag selected text.\n  \n* 4.0.3 (Oct 19, 2014)\n\n\t- Cleanup some old code.\n\t- Add a new method to detect dragging direction.\n  \n* 4.0.2 (Oct 19, 2014)\n\n\t- Fix: Prevent click event when selecting.\n  \n* 4.0.1\n\n\t- Fix: Position calculating bug.\n  \n* 4.0 (Sep 29, 2014)\n\n\t- Now the script will only work if you drag horizontally.\n  \n* 3.0.1 (Aug 17, 2014)\n\n\t- Change the timing of uninit. Will uninit each time mouseup.\n  \n* 3.0 (Aug 17, 2014)\n\n\t- Rewrite with my coding style.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feight04%2Fselect-text-inside-a-link-like-opera","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feight04%2Fselect-text-inside-a-link-like-opera","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feight04%2Fselect-text-inside-a-link-like-opera/lists"}