{"id":15594891,"url":"https://github.com/innei/shuffle-article","last_synced_at":"2025-04-19T18:04:54.732Z","repository":{"id":40429037,"uuid":"366294610","full_name":"Innei/shuffle-article","owner":"Innei","description":"在 DOM 上打乱文字，而非视觉上。","archived":false,"fork":false,"pushed_at":"2023-07-11T05:35:51.000Z","size":108,"stargazers_count":163,"open_issues_count":4,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-04T20:46:24.912Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://innei.github.io/shuffle-article/","language":"HTML","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/Innei.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":"2021-05-11T07:31:41.000Z","updated_at":"2025-02-20T03:05:28.000Z","dependencies_parsed_at":"2024-12-09T15:42:29.666Z","dependency_job_id":"12547145-3b76-4082-94d1-aea168edee39","html_url":"https://github.com/Innei/shuffle-article","commit_stats":{"total_commits":14,"total_committers":1,"mean_commits":14.0,"dds":0.0,"last_synced_commit":"e64e15ea94d53733f1d7a8a9e7be5692b4c494b8"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2Fshuffle-article","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2Fshuffle-article/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2Fshuffle-article/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Innei%2Fshuffle-article/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Innei","download_url":"https://codeload.github.com/Innei/shuffle-article/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246174609,"owners_count":20735417,"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-03T00:42:03.406Z","updated_at":"2025-03-29T11:16:00.106Z","avatar_url":"https://github.com/Innei.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 逻辑打乱文字\n\n不改变文字显示的原有顺序，而改变在 DOM 树中顺序。\n\n![0511193628](https://cdn.jsdelivr.net/gh/Innei/img-bed@master/2021/0511193628.png)\n![0512135651](https://cdn.jsdelivr.net/gh/Innei/img-bed@master/2021/0512135651.png)\n\nDemo: \u003chttps://innei.github.io/shuffle-article/\u003e\n\n## Why\n\n可以有效的防止用户复制文本。即便是复制了也是乱序的，打开控制台复制依然是乱序的。\n\n**PS：道高一尺魔高一丈，依然可以通过 OCR 等方式解决**\n\n## Usage\n\n```sh\nyarn add article-shuffle\n```\n\n```js\nimport { process } from 'article-shuffle'\nconst $article = document.querySelector('article')\n$article.innerHTML = originHTML\n\n$article.querySelectorAll('p').forEach(($p) =\u003e {\n  process($p)\n})\n```\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnei%2Fshuffle-article","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finnei%2Fshuffle-article","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnei%2Fshuffle-article/lists"}