-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.0.1d - Stay onFocus so i can take a unBlurred pic
+ Spining emote (i heard "it's spinning there in the screen" in a stream...) you can change spin speed in options - Removed onfocus and onblur events on input elements and added a condition to cheeck if the element is a input on keypress event + some comment lines added to code + Added github repository link in options, next to license
- Loading branch information
Showing
3 changed files
with
285 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,95 +1,109 @@ | ||
# ppShow | ||
show most used emotes of twitch chat | ||
|
||
Special credits to twitch.tv/omeiaum for the idea, i just coded it | ||
<br> | ||
<i>'dvd mode' may NOT work properly in Firefox, please prefer chromium based browsers (like Chrome)</i> | ||
<br> TY <3 | ||
|
||
|
||
## BASIC USAGE: | ||
|
||
### If don't want to download just reach at [homepage](https://pp-show.vercel.app) and start using! | ||
|
||
1. Dowload both tmi.js, manifest.json and ppShow.html | ||
* OR clone the repo (click on code -> download zip) | ||
* OR go to [Releases](https://github.com/Gnitoon/ppShow/releases) and download the latest | ||
|
||
_manifest is not required, but if you want to host it somewhere it will enable some PWA features_ | ||
|
||
|
||
2. Open the ppShow.html with your browser | ||
3. type the channel name in the input and click "connect" | ||
|
||
* You may wanto to click on settings to change: | ||
- theme (dark/light) | ||
- minimal amount of mentions to show an emote | ||
- zero the emote count after a certain amount of messages | ||
- enable 'dvd mode' to make image bounce on your screen sides | ||
- change speed, speed random multiplier and leave or not the trace | ||
- enable debug to print messages on devTools console (inspect/ctrl+shift+i/F12 key -> console) | ||
- change emote size | ||
- | ||
_these options are available to change directly in the code, look at the object ```data: { options: {...}}```_ | ||
|
||
|
||
|
||
* Emotes not changing/appearing or it's too slow/fast? <br> | ||
- Click on options and change 'minimal aount os mentions' and 'Zero the count...' to lower/higher numbers | ||
|
||
|
||
* 'DVD Mode'? <br> | ||
- Bounce the image on screen sides, just like the dvd logo, but with emotes | ||
- Click on options and mark the "DVD Stant-by bouncing" to enable | ||
- Mark "Don't clear canvas" to keep the path as the image moves | ||
|
||
* Hotkeys: | ||
- 'Esc' to close popups (options and news) | ||
- 'o' to show/hide options | ||
- 'c' to connect/disconnect | ||
- 'h' to show/hide connection info | ||
- 'n' to show/hide news announcement card | ||
|
||
_can be disabled in options_ | ||
|
||
_auto disabled if an input (text fields, checkbox...) is focused_ | ||
|
||
## DEMO video | ||
https://user-images.githubusercontent.com/80431627/110715426-fbfaa980-81e3-11eb-951f-cb03c3c89904.mp4 | ||
![](https://user-images.githubusercontent.com/80431627/110715426-fbfaa980-81e3-11eb-951f-cb03c3c89904.mp4) | ||
|
||
## IMPORTANT NOTICE: | ||
Both options 'zero after messages' and 'min. mentions' affect how often they will appear on screen keeping low values (ex: -1 and 5) in both will make it change faster. | ||
This will depend on chat speed and the ammount of messages. | ||
<br> | ||
|
||
For most cases 5~ and 20~ will be good for 'emote bursts' | ||
<br> | ||
That is, zero the count every 20 messages and if have more than 5 mentions show it | ||
|
||
## Known issues | ||
* Image not being redrawn sometimes - Emote not change in canvas on Firefox | ||
* No support to Edge legacy | ||
|
||
## Why everything in one file (HTML, Js, CSS)? | ||
Easier to distribute, better just download one file and open it. And i could just copy and paste the entire code to update without starting a local git repo. | ||
|
||
_now, really, don't do that for larger projects. cases like this, a small application is 'fine' i guess, but don't do that if is not needed._ | ||
|
||
_i do not code like that always._ | ||
|
||
_<br> tags isn't that great for spacing too i know, but is less tedious than mess with CSS for a simple thing_ | ||
|
||
|
||
## Credits: | ||
* <a href="https://twitch.tv/omeiaum" target="_blank" class="link">oMeiaUm</a> | ||
* <a href="https://vuejs.org/" target="_blank" class="link">Vue.js</a> framework | ||
* <a href="https://tmijs.com/" target="_blank" class="link">tmijs package</a> (to connect with twitch chat) | ||
* <a href="https://betterttv.com/" target="_blank" class="link">BetterTTV</a> (emotes and APIs) | ||
* <a href="https://www.frankerfacez.com/developers" target="_blank" class="link">FrankerFaceZ</a> (channel info) | ||
* <a href="http://developpaper.com/using-canvas-to-make-a-dvd-standby-animation-implementation-code/" target="_blank" class="link">developpaper.com</a>('dvd mode' code base) | ||
* <i>Icon (favicon) by me, based on a random emote from "ppS" bttv search, made with random pixelArt online tool</i> | ||
|
||
|
||
## LICENSE: <a href="https://opensource.org/licenses/MIT" target="_blank" class="link">MIT</a> | ||
|
||
# ppShow | ||
show most used emotes of twitch chat | ||
|
||
Special credits to twitch.tv/omeiaum for the idea, i just coded it | ||
<br> | ||
<i>'dvd mode' may NOT work properly in Firefox, please prefer chromium based browsers (like Chrome)</i> | ||
<br> TY <3 | ||
|
||
|
||
## BASIC USAGE: | ||
|
||
### If don't want to download just reach at [homepage](https://pp-show.vercel.app) and start using! | ||
|
||
1. Dowload both tmi.js, manifest.json and ppShow.html | ||
* OR clone the repo (click on code -> download zip) | ||
* OR go to [Releases](https://github.com/Gnitoon/ppShow/releases) and download the latest | ||
|
||
_manifest is not required, but if you want to host it somewhere it will enable some PWA features_ | ||
|
||
|
||
2. Open the ppShow.html with your browser | ||
3. type the channel name in the input and click "connect" | ||
|
||
* You may wanto to click on settings to change: | ||
- theme (dark/light) | ||
- minimal amount of mentions to show an emote | ||
- zero the emote count after a certain amount of messages | ||
- enable 'dvd mode' to make image bounce on your screen sides | ||
- change speed, speed random multiplier and leave or not the trace | ||
- enable debug to print messages on devTools console (inspect/ctrl+shift+i/F12 key -> console) | ||
- change emote size | ||
- | ||
_these options are available to change directly in the code, look at the object ```data: { options: {...}}```_ | ||
|
||
|
||
|
||
* Emotes not changing/appearing or it's too slow/fast? <br> | ||
- Click on options and change 'minimal aount os mentions' and 'Zero the count...' to lower/higher numbers | ||
|
||
* 'DVD Mode'? <br> | ||
- Bounce the image on screen sides, just like the dvd logo, but with emotes | ||
- Click on options and mark the "DVD Stant-by bouncing" to enable | ||
- Mark "Don't clear canvas" to keep the path as the image moves | ||
|
||
* Hotkeys: | ||
- 'Esc' to close popups (options and news) | ||
- 'o' to show/hide options | ||
- 'c' to connect/disconnect | ||
- 'h' to show/hide connection info | ||
- 'n' to show/hide news announcement card | ||
|
||
_can be disabled in options_ | ||
|
||
_auto disabled if an input (text fields, checkbox...) is focused_ | ||
|
||
|
||
* Other | ||
* add a #hash with channel in URL, it will be setted as channel | ||
- if 'autoconnect' is enabled will get priority over options | ||
- Usage: | ||
`add #<channel> in URL` | ||
- Example: | ||
`https://pp-show.vercel.app/#gnitoon` | ||
|
||
* code is a bit 'beginner' friendly, major part of JavaScript code commented/roughly explained | ||
|
||
* If you need a older version go to /archive/ppShow[version].html | ||
- Example: ´https://pp-show.vercel.app/archive/ppShow101b.html´ | ||
- _this is made to directly open without going back in commits or downloading release_ | ||
|
||
## DEMO video | ||
https://user-images.githubusercontent.com/80431627/110715426-fbfaa980-81e3-11eb-951f-cb03c3c89904.mp4 | ||
![](https://user-images.githubusercontent.com/80431627/110715426-fbfaa980-81e3-11eb-951f-cb03c3c89904.mp4) | ||
|
||
## IMPORTANT NOTICE: | ||
Both options 'zero after messages' and 'min. mentions' affect how often they will appear on screen keeping low values (ex: -1 and 5) in both will make it change faster. | ||
This will depend on chat speed and the ammount of messages. | ||
<br> | ||
|
||
For most cases 5~ and 20~ will be good for 'emote bursts' | ||
<br> | ||
That is, zero the count every 20 messages and if have more than 5 mentions show it | ||
|
||
## Known issues | ||
* Image not being redrawn sometimes - Emote not change in canvas on Firefox | ||
* No support to Edge legacy | ||
|
||
## Why everything in one file (HTML, Js, CSS)? | ||
Easier to distribute, better just download one file and open it. And i could just copy and paste the entire code to update without starting a local git repo. | ||
|
||
_now, really, don't do that for larger projects. cases like this, a small application is 'fine' i guess, but don't do that if is not needed._ | ||
|
||
_i do not code like that always._ | ||
|
||
_<br> tags isn't that great for spacing too i know, but is less tedious than mess with CSS for a simple thing_ | ||
|
||
|
||
## Credits: | ||
* <a href="https://twitch.tv/omeiaum" target="_blank" class="link">oMeiaUm</a> | ||
* <a href="https://vuejs.org/" target="_blank" class="link">Vue.js</a> framework | ||
* <a href="https://tmijs.com/" target="_blank" class="link">tmijs package</a> (to connect with twitch chat) | ||
* <a href="https://betterttv.com/" target="_blank" class="link">BetterTTV</a> (emotes and APIs) | ||
* <a href="https://www.frankerfacez.com/developers" target="_blank" class="link">FrankerFaceZ</a> (channel info) | ||
* <a href="http://developpaper.com/using-canvas-to-make-a-dvd-standby-animation-implementation-code/" target="_blank" class="link">developpaper.com</a>('dvd mode' code base) | ||
* <i>Icon (favicon) by me, based on a random emote from "ppS" bttv search, made with random pixelArt online tool</i> | ||
|
||
|
||
## LICENSE: <a href="https://opensource.org/licenses/MIT" target="_blank" class="link">MIT</a> | ||
|
Oops, something went wrong.
af0015a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: