{"id":13576417,"url":"https://github.com/daymade/Twitter-Block-Porn","last_synced_at":"2025-04-05T05:31:47.378Z","repository":{"id":179489834,"uuid":"663547044","full_name":"daymade/Twitter-Block-Porn","owner":"daymade","description":"共享黑名单, 一键拉黑所有黄推诈骗犯. Block scammers who sending fake porn comments, and help you improve your experience using Twitter.","archived":false,"fork":false,"pushed_at":"2024-08-29T13:05:20.000Z","size":2886,"stargazers_count":1982,"open_issues_count":4,"forks_count":59,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-04T05:39:15.499Z","etag":null,"topics":["porn-filter","spam-filtering","twitter"],"latest_commit_sha":null,"homepage":"https://greasyfork.org/zh-CN/scripts/470359-twitter-block-porn","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"E011011101001/Twitter-Block-With-Love","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daymade.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":"daymade","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":"finetuning","custom":null}},"created_at":"2023-07-07T14:47:38.000Z","updated_at":"2025-04-04T01:12:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"7affed17-14bf-4485-9ffe-9213790b3c0c","html_url":"https://github.com/daymade/Twitter-Block-Porn","commit_stats":null,"previous_names":["daymade/twitter-block-porn"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daymade%2FTwitter-Block-Porn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daymade%2FTwitter-Block-Porn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daymade%2FTwitter-Block-Porn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daymade%2FTwitter-Block-Porn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daymade","download_url":"https://codeload.github.com/daymade/Twitter-Block-Porn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294455,"owners_count":20915335,"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":["porn-filter","spam-filtering","twitter"],"created_at":"2024-08-01T15:01:10.048Z","updated_at":"2025-04-05T05:31:42.348Z","avatar_url":"https://github.com/daymade.png","language":"JavaScript","funding_links":["https://github.com/sponsors/daymade","https://buymeacoffee.com/finetuning","https://www.buymeacoffee.com/finetuning"],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n   \u003ca href=\"https://trendshift.io/repositories/1501\" target=\"_blank\"\u003e\n      \u003cimg src=\"https://trendshift.io/api/badge/repositories/1501\" alt=\"daymade%2FTwitter-Block-Porn | Trendshift\" style=\"height: 35px;\"/\u003e\n   \u003c/a\u003e\n\u003c/div\u003e\n\n## Twitter-Block-Porn\n\n受不了评论区黄推了? 打开[共享黑名单](https://twitter.com/i/lists/1677334530754248706)，用 [Twitter-Block-Porn](https://greasyfork.org/zh-CN/scripts/470359-twitter-block-porn) 插件一键批量拉黑黄推，手机上也能生效，普通人拉黑受益的是自己，大V拉黑受益的是所有人。\n\n## 功能\n\n- 共享黑名单，一键拉黑所有黄推诈骗犯，被黄推提前拉黑了也能生效\n\n  ![image](https://github.com/daymade/Twitter-Block-Porn/assets/4291901/b56331b2-368f-4716-b916-2654aefc9bca)\n\n- 熟悉的小蓝鸟又飞回来了! 将 Logo 还原为 Twitter 原始的小鸟。 效果: \n\n  ![替换 logo](https://greasyfork.org/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBBeC9BQVE9PSIsImV4cCI6bnVsbCwicHVyIjoiYmxvYl9pZCJ9fQ==--f05c18d96183f1c8de51bcd322b9dd476e555da0/F14jEjkWIAEg3wS.png?locale=zh-CN)\n\n## 使用方式\n\n1. 打开脚本[主页](https://greasyfork.org/zh-CN/scripts/470359-twitter-block-porn)，安装脚本\n\n   \u003cimg width=\"547\" alt=\"image\" src=\"https://github.com/daymade/Twitter-Block-Porn/assets/4291901/15d98829-8615-4ef7-9fbf-c2297cac8b23\"\u003e\n\n2. 用电脑打开列表，点击跳转到 [列表①](https://twitter.com/i/lists/1677334530754248706) [列表②](https://twitter.com/i/lists/1683810394287079426)，或者直接点击插件图标可以跳转到各个黑名单\n\n   \u003cimg width=\"256\" alt=\"image\" src=\"https://github.com/daymade/Twitter-Block-Porn/assets/4291901/2cc2baa9-e116-4d91-b8fa-6c5b1be887ac\"\u003e\n3. 在推特**列表**的页面，点列表**封面图下方**的查看成员（members），打开列表成员弹框\n\n   \u003cimg width=\"591\" alt=\"image\" src=\"https://github.com/daymade/Twitter-Block-Porn/assets/4291901/a7f015a1-a34f-4dc6-9ad5-46d7c8655239\"\u003e\n\n4. 在弹框的右上角有\"全部屏蔽\"按钮\n\n   \u003cimg width=\"603\" alt=\"image\" src=\"https://github.com/daymade/Twitter-Block-Porn/assets/4291901/a1b5f482-f579-4764-9978-8feb0f1df970\"\u003e\n\n### 风险提示\n\n请节制操作避免风控，建议屏蔽多个列表要间隔一段时间操作，隔天再拉黑更安全。\n\n1. 不管是手动还是自动，如果一天 block 超过500个左右，就会被 Twitter 强制登出，需要重新登录。\n2. 这个插件呢，它并没有用到任何黑科技，和手动 block 是完全一样的实现，可以理解脚本只是帮你点击了屏蔽按钮。\n\n## Roadmap\n\n- [ ] 短时间内屏蔽多次时提示用户隔天再操作，记录上一次屏蔽时间。\n- [ ] 拉黑的批量操作改成前端入queue，在后台缓慢拉黑，期间显示进度\n- [ ] 跟踪列表的更新，持续自动拉黑offset以后的新账号\n- [ ] 增加举报功能\n\n参见 [路线图](https://github.com/users/daymade/projects/3)\n\n## 贡献方式\n\n参见 [贡献方式.md](https://github.com/daymade/Twitter-Block-Porn/blob/master/CONTRIBUTING.md)\n\n## 支持\n\n### 捐助\n\n- 💝 请我喝蜜雪冰城😋 **[buymeacoffee.com/finetuning](https://www.buymeacoffee.com/finetuning)**\n- 👤 需要匿名请发送到 `0x3eccE113CA05350B2CefeE97b429EA1d3CBCd267`，我嘴很严\n\n### 打分/评价\n\n⭐⭐⭐⭐⭐ 在 [Greasy Fork](https://greasyfork.org/zh-CN/scripts/470359-twitter-block-porn/feedback#post-discussion) 给我打分\n\n## 源码地址\n\n[https://github.com/daymade/Twitter-Block-Porn](https://github.com/daymade/Twitter-Block-Porn)\n\n方便的话给个免费的 STAR 吧 (*╹▽╹*) !\n\n## 实现原理\n\n1. 怎么批量 Block 账号?\n\n   抓包可以看出来在用户点击拉黑某个账号时，会向 twitter 服务器发送 `/1.1/blocks/create.json` 请求，用 js 携带用户自己的 cookie 模拟这个请求，就可以达到自动拉黑的效果。\n\n2. `/1.1/blocks/create.json` 需要 id 参数，怎么查询账号的 id?\n\n   ```\n   # 填入你在 https://developer.twitter.com 申请的 API KEY，替换 XXX\n   export TWITTER_API_KEY=\"XXX\"\n\n   # 调用推特开发者 API，修改 screen_name 为你要查询的用户名，可传入多个用逗号分隔\n   curl -s -X GET \"https://api.twitter.com/1.1/users/lookup.json?screen_name=va77735,annegaga09\" \\\n      -H \"Authorization: Bearer $TWITTER_API_KEY\" \\\n      | jq '[.[] | .id_str]'\n   ```\n\n3. 怎么自动识别诈骗黄推? \n\n   使用 https://github.com/daymade/Block-Pornographic-Replies 插件，用关键字识别\n\n4. 怎么批量管理 twitter 的 List，自动将诈骗账号添加到 List?\n\n    魔改了 https://github.com/daymade/Block-Pornographic-Replies 插件，代码见 https://github.com/slarkvan/Block-Pornographic-Replies/compare/main...daymade:Block-Pornographic-Replies:main\n\n## 👨‍💻贡献者/Contributors\n\n我们欢迎任何形式的贡献，无论是提交错误报告，提出改进意见，或者是提供代码和文档。我们都欣赏你的帮助。\n\n贡献者列表：\n\n\u003ca href=\"https://github.com/daymade/Twitter-Block-Porn/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=daymade/Twitter-Block-Porn\" /\u003e\n\u003c/a\u003e\n\n## 致谢\n\n- 感谢 [@奥莉𝗢𝗹𝗹𝗶𝗲](https://twitter.com/MissOllie2020) 无私捐赠一个月蜜雪冰城, 祝富婆生意兴隆, 和00后如胶似漆!\n- 感谢 [Manjusaka_Lee](https://github.com/Zheaoli) 无私捐赠 50 杯蜜雪冰城, 祝老板事业有成, 单元测试全绿!\n- 感谢 [@taresky](https://twitter.com/taresky) [@kefan_ManesLAB](https://twitter.com/kefan_ManesLAB) [@tennisatw](https://twitter.com/tennisatw) [@hengdm](https://twitter.com/hengdm) [@betajerks](https://twitter.com/betajerks) [@yum_707](https://twitter.com/yum_707) 等 \t𝕏 友的投喂!\n- 感谢 [@aoxu](https://twitter.com/Blind___Gamer) 数十日如一日提供了很多高质量黑名单\n- 感谢 [albaz64](https://github.com/albaz64) 提供了还原被替换 logo 的思路\n- 感谢 [E011011101001](https://github.com/E011011101001) 的原始代码，本仓库 forked from [Twitter-Block-With-Love](https://github.com/E011011101001/Twitter-Block-With-Love)\n\n---\n李老师最可爱\n\u003cpre\u003e\n                                                                                                   \n                                                                                                   \n                                                                        ....*...                   \n                                                                        .*,@@\\..                   \n            ..*......  .                ..  .   ......................*.,@@^@@..                   \n            .,@@@].... .                   ..   .......*..*........ **,@@`..=@^.                   \n            .=@^.[@@\\`......    ........*...,]]@@@@@@@@@@@@@@@@@@]].,@@/... =@@.                   \n            ..@^....,\\@\\....    ...**]/@@@@@/[[......*...........[\\@@`....  .@@`..                 \n            ..\\@    ..,@@\\...*.,]@@@@[`......@@.....,@@`....                .=@\\....               \n            ..@@    .....\\@]@@@/[..........,@@@@`.*.@/\\@`...                .*@@....               \n            ../@        ...[*...        ...=@@*,@\\.=@^*@@...                ..=@^...               \n            ..@/        .....           ...@@@...\\@@@...\\@**                ...@@`..               \n            ..\\@                        ..=@@@....,[`....@@*..      ....*.**...=@\\..               \n            ../@                        ..=@@^............`..       ...,@@`.....@@`*               \n            ..=@. ..                    ..=@.`..                    .,@@/...  ..=@\\.               \n            ..=@....                    ........                  ../@@`....   ..@@*               \n            ..=@....    .   ............                       ..................=@^....    ....   \n            ..=@^..      ...*]]]]]]*.*..                       ...................@@....    ..*.   \n            ..*@^...      ...\\@@@@@@@`..        .   . .   ..    .....,O@O`**......=@^....,]@@@@.   \n            ...@^...    .   ...... .....         ........       . ..*@@@@@`......./@@@@/[`*.....   \n  ..**.........@@...   .....*]]`..            .../@@@@@^. .         .....**.**]@@/`\\@`..           \n ...\\@@@`......@@...   ...*=@@@/..             ..\\@@@@@`.               ...,@[.....=@^*.           \n    ....[@@@@]]/@...........[/`*        ......*...,@@/..*....*..........    ...,...,@@..........   \n     .........*=@/[\\@@@@@/@]*..*.       ..*..]]@@@@@@@@@@@@@@@@@@\\`...*.    ...*,[@@@@@@@@@@@@@.   \n................@^.......... ........*]]@@@@\\@^.... ........,@@@^,[@@@@\\.*..      ..*@\\.........   \n ......*......]]@@@@@@@@/*..    ..*,@/[..,@\\@@..    .......,]/@@@@@@@@@@@...       ..@@*           \n...@@@@@@@@@[[[`\\@..            .*=@`..*...,[`...,]]@@@@@@@@[[[`..           . ......,@\\.......    \n............ ...=@..            .*.[@@@@@@@@@@@@@@/*.............            ...\\@@\\]]@@.......    \n                *@^.........        ......  ......                            .......,\\@@@@@@\\].   \n                .=@...../@*.         ..                                          .. ..=@^.......   \n           ......=@`.]@/`*..                                                        ..=@^...       \n          . ..*,]/@@/`......                                                        ..=@^...       \n    ......,/@@@/`*=@....                                                        ......=@^. .       \n    ..,/@@/`..*...,@^*..                                                        ...**]/@`..        \n     .....      ..*\\@...                                                        ...@@@@@^...       \n                ...,@^..                                                        ..*,[@@@`...       \n                   .\\\\.....*.*..                                ........,]]]*.........=@^.......   \n                   .=@@@@@@@@`..                                ...**/@@/`...*...,/@@@@@\\.....*.   \n                    .@/[[`*... .            ..,`........        .*/@@`....      .,[[\\@@@@@@@/@@*   \n                    .@@*.......             ..,\\@@@\\*...        .,@^....   .    ................   \n                    .@@@@@@@\\...   .    . . ......*[@\\`. . ... ..@@.    ....  ..            ..     \n                    .@@@/[[[[...        .............\\@`....  ..=@^*.........               .  .   \n                    .=@.....    ..]`......]@@@\\*.]/@@@@@^*.....=@^,]`.*,@@]`..**    ..........=`   \n                    .=@^....    ..[@@]]@@/[*.*@@^@@@@/\\@`......@@@@@^@@@@.[@@@@.    ...*]@@@`@@.   \n                    ..@@@\\`.....    ....     ..=@@@`...     ...\\@`.@@@@@/...    .....*./@\\.,\\@@.   \n                    ..@@@@@@@`*.            ....*,`*..      ........[`......    ...*@@@@@@......   \n                    .*@@@@@@[\\`.                                                ...,@@@@@@`.       \n                    ..\\@***.....                                                .. ...../@^.       \n                                                                                                   \n                                                                                                   \u003c/pre\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaymade%2FTwitter-Block-Porn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaymade%2FTwitter-Block-Porn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaymade%2FTwitter-Block-Porn/lists"}