{"id":20785938,"url":"https://github.com/kelpycode/jacket","last_synced_at":"2026-06-07T09:32:30.465Z","repository":{"id":75097029,"uuid":"63548244","full_name":"KelpyCode/Jacket","owner":"KelpyCode","description":"A jQuery Javascript extension for PasteJacking","archived":false,"fork":false,"pushed_at":"2016-07-17T19:52:52.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-18T09:52:35.877Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KelpyCode.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-17T19:13:43.000Z","updated_at":"2016-07-17T19:18:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"3b4615d4-d454-46ab-be64-aa74979d130b","html_url":"https://github.com/KelpyCode/Jacket","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/KelpyCode%2FJacket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KelpyCode%2FJacket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KelpyCode%2FJacket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KelpyCode%2FJacket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KelpyCode","download_url":"https://codeload.github.com/KelpyCode/Jacket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243129478,"owners_count":20241021,"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-11-17T14:49:43.504Z","updated_at":"2025-12-16T08:35:39.408Z","avatar_url":"https://github.com/KelpyCode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Jacket\nA jQuery Javascript extension for PasteJacking\n\n##What is 'PasteJacking'?\nPasteJacking is modifying the Clipboard by changing it to something else.\nThis could be potentially be used for malicious use.\nJust imagine: You read a web tutorial and just want to copy paste. \n```\necho Hello this is totally safe to use! :)\n```\n\nAnd you straight up copy it in the CMD / Terminal and suddenly..\n```\necho \"I am dr evil! \u003e:D\" \u0026 rm -rf *\n(\\n) \u003c-- Newline so the CLI gets executed\n```\n\nObviously thats not good but thats not in my hands.\n**If you copy paste terminal stuff directly from a website please make sure you are pasting the right thing**\n\n##Requirement\n[jQuery](http://jquery.com) is required in order to use Jacket.\nJacket has to be loaded AFTER jQuery.\n```html\n\u003cscript src=\"/js/jquery.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"/js/jacket.js\"\u003e\u003c/script\u003e\n```\n\n##Example of use\nRefer to **/examples** or read below:\n\n###Binding copy\n\nWe have this textbox:\n```html\n\u003cinput type='input' id='jackthis' value='Some stuff'\u003e\n```\n\nAnd we want that the user copies **'Some stuff - Read more at x'**.\nThis is possible by the following JavaScript:\n```javascript\n$(\"#jackthis\").jacket($(this).val() + \" - Read more at x\");\n```\n\nNow when the users copies text from the texbox, he will copy it including the \" - Read more at x\"\n\n##Unbinding copy\nSimply use\n```javascript\n$(\"#jackthis\").jacket()\n```\n\n##Documentation\n[Please refer to the Wiki](https://github.com/XaoticLabs/Jacket/wiki)\n\n##License\n[MIT License](http://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkelpycode%2Fjacket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkelpycode%2Fjacket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkelpycode%2Fjacket/lists"}