Git Product home page Git Product logo

pogu's Introduction

PogU.js BetterTTV Emotes for the browser console


It adds a new function console.logU wich transforms the input string to contain Twitch emotes.

BG

The code is currently isn't worth looking at, as it have 10 levels of indentation in some places, but hey, it works!

It works

It currently doesn't overwrite console.log but in the future that will probably be a option

Pepega Clap

It supports full size emotes and even GIFs! (not shown here)

Comps

You can install emotes from any channel, for example, here is some emotes from @xQcOW.

xQcL

Some examples of the proper usage of the module.

xQcL

How it works?

You can put CSS in the console so...

console.log('test hehe')

console.log('test %chehe', 'color: red')

console.log('test %chehe', 'background-image: url(https://cdn.betterttv.net/emote/55a16413bcf69555414360f2/3x); padding: 30px;')

The rest of the code is for:

  • Getting the list of emotes from url of channels/users
  • Downloading them at init time for caching and getting image dimensions
  • Changing the argument list of calls to console.logU so calls like console.logU('a', 1, 'b') still prints a 1 b.

Is this even legal???

Acording to the developers of BetterTTV:

xQcL

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.