Giter Site home page Giter Site logo

spoof-qrcode's Introduction

Spoof-QRcode

说明

这个微信小程序的具体功能是做一个假的微信群聊二维码来恶搞好友,起因是我在 4 月 1 号被一个好友以类似这样的图片愚弄了,4 月 2 号琢磨了一下思路,找了一些好友来测试,4 月 5 号上线。

小程序二维码

五一假期有点空闲时间,于是完善了一下,然后开源。

页面截图

下面是有意思的例子,扫描看一下

有趣的例子

如果不填写群名和内容就点击『恶搞』 生成图片,那么群名会随机,内容被自动填写为我写好的内容。

因为小程序里面 if 不能嵌套 ,所以代码只能变成这样。

代码

如果输入的内容里包含敏感词,会提示 『包含敏感词,请重新编辑』。删掉输入的内容就能发现什么是敏感词,程序会自动把敏感词替换成 *,敏感词列表不太完善,请见谅。

没钱用 API ,微信提供的那个需要用服务器,我不太想用服务器,所以直接前端实现。

敏感词

已知问题

  1. 内容不能有 emoji,否则 ios 扫描二维码会乱码

  2. 部分手机生成的二维码和一般的二维码有区别,具体表现为有小白边。如下图所示:

    生成的图片

  3. 引导层对不齐。模拟器上稳稳妥妥没毛病,真机上各种不齐。

    截图

  4. iOS 上点击『奖赏作者』,图片加载不出来。

Thanks

这个小程序,绘图用的是 Painter ,没有这个库,这个小程序可能只是一个想法。

https://github.com/Kujiale-Mobile/Painter

还要感谢帮我测试、给我提建议的各位小伙伴,一起完善了这个小程序。

TODO

  • 修正引导层
  • 完善敏感词
  • 生成的图片加上带壳截图
  • 完善 README
  • 随机群头像

另一个小程序『颜值检测仪』早就开源了,点击查看说明

https://github.com/weijunzii/beauty

如果有什么问题或者是建议,可以提 issue,当然,也可以直接微信联系我。

个人微信

spoof-qrcode's People

Contributors

weijunzii avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.