{"id":17037437,"url":"https://github.com/robflaherty/link-lock","last_synced_at":"2025-04-12T13:22:44.296Z","repository":{"id":137550430,"uuid":"4168456","full_name":"robflaherty/link-lock","owner":"robflaherty","description":"Lock down accidental link tapping with a simple gesture","archived":false,"fork":false,"pushed_at":"2012-04-28T17:03:34.000Z","size":204,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T08:07:14.614Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robflaherty.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-04-28T16:22:25.000Z","updated_at":"2014-06-28T03:50:17.000Z","dependencies_parsed_at":"2023-03-11T03:01:37.659Z","dependency_job_id":null,"html_url":"https://github.com/robflaherty/link-lock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robflaherty%2Flink-lock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robflaherty%2Flink-lock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robflaherty%2Flink-lock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robflaherty%2Flink-lock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robflaherty","download_url":"https://codeload.github.com/robflaherty/link-lock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248572033,"owners_count":21126571,"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":[],"created_at":"2024-10-14T08:53:55.326Z","updated_at":"2025-04-12T13:22:44.276Z","avatar_url":"https://github.com/robflaherty.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Link Lock\nHave you ever been reading something on a tablet or mobile device, touched the screen to scroll, and accidentally tapped on a link? Argh! It's especially frustating if you're on a low-bandwidth connection, reading offline, or viewing non-mobile-friendly pages.\n\nSometimes I've wished there was a way to \"link lock\" a page (similar to the way orientation lock works) to prevent me from accidentally navigating away from the current page. So that's what this script tries to do.\n\nAlthough it's fairly production-friendly (I have it [running on my blog](http://www.ravelrumba.com)) right now it's intended as a proof of concept. I'm curious to know if this is something others have thought about or if I'm just especially clumsy and cranky when it comes to accidentally activating links.\n\n## Using\nOn touch devices that support basic touch events, tap-and-hold with 3 fingers to toggle the link lock state. Successful toggling will be indicated by an icon in the center of the screen as well as an opacity effect on all link elements.\n\nSometimes you have to try a few times to get the 3-finger hold event \"to take\". Multi-touch is kinda hard.\n\nThere's probably a better activation event than a 3-finger hold but it gets tricky trying to dodge OS gestures as well as basic browser navigation gestures. Suggestions?\n\n## Set up\nMake sure you're using jQuery 1.7+ and then just include `linklock.js`.\n\n## Demo\n* If you're using a supported touch device you can try it out on [any page of my blog](http://www.ravelrumba.com).\n* If you're on a desktop you can view this [mousedown event simulation page](http://www.ravelrumba.com/code/demos/linklock/).\n\n## Device support\nSo far I've only tested this in Mobile Safari on my iPad and iPhone. Android and Opera testing coming soon.\n\n## Contact\n[@robflaherty](https://twitter.com/#!/robflaherty)\n\n## License\nLicensed under the MIT and GPL licenses.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobflaherty%2Flink-lock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobflaherty%2Flink-lock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobflaherty%2Flink-lock/lists"}