• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

tholman/buddy: Chrome extension, and friend from hell

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

tholman/buddy

开源软件地址:

https://github.com/tholman/buddy

开源编程语言:

JavaScript 100.0%

开源软件介绍:

Buddy!

Foreword

In the winter of 2016, I began creating Buddy. Initially Buddy was built to be a friend when working from home, something or someone to talk back at me every now and then, and inject a little humor into my life.

After some time, the surprise and delight of creating my own bot (if you could even call it that) went missing, and I opened Buddy up to some friends, with the promise that whatever code they write, will be running in my browser.

Its probably best if you watch me talk about him, to really experience what he became all about.

Video of me talking about buddy

He's a nasty piece of work.

--

Understandably, there's some really weird code in his actual source, but due to overwhelming want, I'm open sourcing a really (read: really really) simple shell, of Buddy's existance. So people can create and play with their own "Buddy".

A few things that the "video" version has that this doesn't are: style injecting, some strange system to give default "popups", something that definitely manages timings, so certain things can happen at certain hours of the day. But hey, perhaps the fun part is building those pieces yourself!

Installing

  1. Clone repo, or download it
  2. Go to chrome://extensions/ (in chrome) and click "load unpacked extension"
  3. Choose the src folder (it has the manifest.json file)
  4. You should hear him speak, straight out of the bat.

How it works!

tldr:

Buddy injects scripts onto your page.

More weird version that makes little sense to myself

A few things you need to know... for the most part, pages funcitonality runs out of pages/pageName.js ... so reddit will run out of reddit.js.

The javascript for specific pages is injected by the bindPage file, which then requests page information from the client ... which is in bot/init.js

A few other files exist. actions.js which is the client side functions like "speak", this maps to the pageActions speak function.

Licence

The MIT License (MIT)

Copyright (C) 2016 ~ Tim Holman ~ [email protected]




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap