Giter Site home page Giter Site logo

cadeyu / twitter-block-porn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from daymade/twitter-block-porn

0.0 0.0 0.0 1.63 MB

共享黑名单, 一键拉黑所有黄推诈骗犯. Block scammers who sending fake porn comments, and help you improve your experience using Twitter.

Home Page: https://greasyfork.org/zh-CN/scripts/470359-twitter-block-porn

License: MIT License

Shell 3.38% JavaScript 96.62%

twitter-block-porn's Introduction

Twitter-Block-Porn

受不了评论区黄推了? 打开共享黑名单,用 Twitter-Block-Porn 插件一键批量拉黑黄推,手机上也能生效,普通人拉黑受益的是自己,大V拉黑受益的是所有人。

功能

  • 共享黑名单,一键拉黑所有黄推诈骗犯,被黄推提前拉黑了也能生效

    image

  • 熟悉的小蓝鸟又飞回来了! 将 Logo 还原为 Twitter 原始的小鸟。 效果:

    替换 logo

使用方式

  1. 打开脚本主页,安装脚本

    image
  2. 用电脑打开列表,点击跳转到 列表① 列表②,或者直接点击插件图标可以跳转到各个黑名单

    image
  3. 在推特列表的页面,点列表封面图下方的查看成员(members),打开列表成员弹框

    image
  4. 在弹框的右上角有"全部屏蔽"按钮

    image

风险提示

请节制操作避免风控,建议屏蔽多个列表要间隔一段时间操作,隔天再拉黑更安全。

  1. 不管是手动还是自动,如果一天 block 超过500个左右,就会被 Twitter 强制登出,需要重新登录。
  2. 这个插件呢,它并没有用到任何黑科技,和手动 block 是完全一样的实现,可以理解脚本只是帮你点击了屏蔽按钮。

Roadmap

  • 短时间内屏蔽多次时提示用户隔天再操作,记录上一次屏蔽时间。
  • 拉黑的批量操作改成前端入queue,在后台缓慢拉黑,期间显示进度
  • 跟踪列表的更新,持续自动拉黑offset以后的新账号
  • 增加举报功能

参见 路线图

贡献方式

参见 贡献方式.md

支持

捐助

  • 💝 请我喝蜜雪冰城😋 buymeacoffee.com/finetuning
  • 👤 需要匿名请发送到 0x3eccE113CA05350B2CefeE97b429EA1d3CBCd267,我嘴很严

打分/评价

⭐⭐⭐⭐⭐ 在 Greasy Fork 给我打分

源码地址

https://github.com/daymade/Twitter-Block-Porn

方便的话给个免费的 STAR 吧 (╹▽╹) !

实现原理

  1. 怎么批量 Block 账号?

    抓包可以看出来在用户点击拉黑某个账号时,会向 twitter 服务器发送 /1.1/blocks/create.json 请求,用 js 携带用户自己的 cookie 模拟这个请求,就可以达到自动拉黑的效果。

  2. /1.1/blocks/create.json 需要 id 参数,怎么查询账号的 id?

    # 填入你在 https://developer.twitter.com 申请的 API KEY,替换 XXX
    export TWITTER_API_KEY="XXX"
    
    # 调用推特开发者 API,修改 screen_name 为你要查询的用户名,可传入多个用逗号分隔
    curl -s -X GET "https://api.twitter.com/1.1/users/lookup.json?screen_name=va77735,annegaga09" \
       -H "Authorization: Bearer $TWITTER_API_KEY" \
       | jq '[.[] | .id_str]'
    
  3. 怎么自动识别诈骗黄推?

    使用 https://github.com/daymade/Block-Pornographic-Replies 插件,用关键字识别

  4. 怎么批量管理 twitter 的 List,自动将诈骗账号添加到 List?

    魔改了 https://github.com/daymade/Block-Pornographic-Replies 插件,代码见 https://github.com/slarkvan/Block-Pornographic-Replies/compare/main...daymade:Block-Pornographic-Replies:main

👨‍💻贡献者/Contributors

我们欢迎任何形式的贡献,无论是提交错误报告,提出改进意见,或者是提供代码和文档。我们都欣赏你的帮助。

贡献者列表:

致谢


李老师最可爱

                                                                                                   
                                                                                                   
                                                                        ....*...                   
                                                                        .*,@@\..                   
            ..*......  .                ..  .   ......................*.,@@^@@..                   
            .,@@@].... .                   ..   .......*..*........ **,@@`..=@^.                   
            .=@^.[@@\`......    ........*...,]]@@@@@@@@@@@@@@@@@@]].,@@/... =@@.                   
            ..@^....,\@\....    ...**]/@@@@@/[[......*...........[\@@`....  .@@`..                 
            ..\@    ..,@@\...*.,]@@@@[`......@@.....,@@`....                .=@\....               
            ..@@    .....\@]@@@/[..........,@@@@`.*.@/\@`...                .*@@....               
            ../@        ...[*...        ...=@@*,@\.=@^*@@...                ..=@^...               
            ..@/        .....           ...@@@...\@@@...\@**                ...@@`..               
            ..\@                        ..=@@@....,[`....@@*..      ....*.**...=@\..               
            ../@                        ..=@@^............`..       ...,@@`.....@@`*               
            ..=@. ..                    ..=@.`..                    .,@@/...  ..=@\.               
            ..=@....                    ........                  ../@@`....   ..@@*               
            ..=@....    .   ............                       ..................=@^....    ....   
            ..=@^..      ...*]]]]]]*.*..                       ...................@@....    ..*.   
            ..*@^...      ...\@@@@@@@`..        .   . .   ..    .....,O@O`**......=@^....,]@@@@.   
            ...@^...    .   ...... .....         ........       . ..*@@@@@`......./@@@@/[`*.....   
  ..**.........@@...   .....*]]`..            .../@@@@@^. .         .....**.**]@@/`\@`..           
 ...\@@@`......@@...   ...*=@@@/..             ..\@@@@@`.               ...,@[.....=@^*.           
    ....[@@@@]]/@...........[/`*        ......*...,@@/..*....*..........    ...,...,@@..........   
     .........*=@/[\@@@@@/@]*..*.       ..*..]]@@@@@@@@@@@@@@@@@@\`...*.    ...*,[@@@@@@@@@@@@@.   
................@^.......... ........*]]@@@@\@^.... ........,@@@^,[@@@@\.*..      ..*@\.........   
 ......*......]]@@@@@@@@/*..    ..*,@/[..,@\@@..    .......,]/@@@@@@@@@@@...       ..@@*           
...@@@@@@@@@[[[`\@..            .*=@`..*...,[`...,]]@@@@@@@@[[[`..           . ......,@\.......    
............ ...=@..            .*.[@@@@@@@@@@@@@@/*.............            ...\@@\]]@@.......    
                *@^.........        ......  ......                            .......,\@@@@@@\].   
                .=@...../@*.         ..                                          .. ..=@^.......   
           ......=@`.]@/`*..                                                        ..=@^...       
          . ..*,]/@@/`......                                                        ..=@^...       
    ......,/@@@/`*=@....                                                        ......=@^. .       
    ..,/@@/`..*...,@^*..                                                        ...**]/@`..        
     .....      ..*\@...                                                        ...@@@@@^...       
                ...,@^..                                                        ..*,[@@@`...       
                   .\\.....*.*..                                ........,]]]*.........=@^.......   
                   .=@@@@@@@@`..                                ...**/@@/`...*...,/@@@@@\.....*.   
                    .@/[[`*... .            ..,`........        .*/@@`....      .,[[\@@@@@@@/@@*   
                    .@@*.......             ..,\@@@\*...        .,@^....   .    ................   
                    .@@@@@@@\...   .    . . ......*[@\`. . ... ..@@.    ....  ..            ..     
                    .@@@/[[[[...        .............\@`....  ..=@^*.........               .  .   
                    .=@.....    ..]`......]@@@\*.]/@@@@@^*.....=@^,]`.*,@@]`..**    ..........=`   
                    .=@^....    ..[@@]]@@/[*.*@@^@@@@/\@`......@@@@@^@@@@.[@@@@.    ...*]@@@`@@.   
                    ..@@@\`.....    ....     ..=@@@`...     ...\@`.@@@@@/...    .....*./@\.,\@@.   
                    ..@@@@@@@`*.            ....*,`*..      ........[`......    ...*@@@@@@......   
                    .*@@@@@@[\`.                                                ...,@@@@@@`.       
                    ..\@***.....                                                .. ...../@^.       
                                                                                                   
                                                                                                   

twitter-block-porn's People

Contributors

daymade avatar github-actions[bot] avatar e011011101001 avatar overflowcat avatar yuanleemidori avatar bxb100 avatar lambone avatar yuhanawa avatar chinaboard avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.