Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f1a3d5f990 | ||
|
|
17223220f3 | ||
|
|
eb344a1c86 | ||
|
|
b42d73f86f | ||
|
|
54a6068f0e | ||
|
|
74b7090dba |
@@ -1,3 +1,7 @@
|
|||||||
|
This Project is dead.
|
||||||
|
I recommend [7tv](https://7tv.app) as an alternative - they did a fantastic job doing what I did not have time to do.
|
||||||
|
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<img width="443" height="592" src="https://storage.googleapis.com/womp-website_cloudbuild/cdn/wompchat/gif/emotesMenu.gif">
|
<img width="443" height="592" src="https://storage.googleapis.com/womp-website_cloudbuild/cdn/wompchat/gif/emotesMenu.gif">
|
||||||
</p>
|
</p>
|
||||||
|
|||||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "WompChat",
|
"name": "WompChat",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "WompChat",
|
"name": "WompChat",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"description": "Enhances the YouTube Live Streaming experience with Emotes, Custom Styling and quality of life improvements.",
|
"description": "Enhances the YouTube Live Streaming experience with Emotes, Custom Styling and quality of life improvements.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "webpack --progress --watch",
|
"start": "webpack --progress --watch",
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ class Emotes {
|
|||||||
// loadEmote is where we collect an object array of emotes from bttv api
|
// loadEmote is where we collect an object array of emotes from bttv api
|
||||||
async loadBTTVEmote(){
|
async loadBTTVEmote(){
|
||||||
|
|
||||||
|
try {
|
||||||
// top 100 emotes query = ?limit=100&offset=100
|
// top 100 emotes query = ?limit=100&offset=100
|
||||||
const bttv_top_api_url = "https://api.betterttv.net/3/emotes/shared/top?limit=100";
|
const bttv_top_api_url = "https://api.betterttv.net/3/emotes/shared/top?limit=100";
|
||||||
const bttv_top_api_response = await fetch(bttv_top_api_url);
|
const bttv_top_api_response = await fetch(bttv_top_api_url);
|
||||||
@@ -87,6 +88,10 @@ class Emotes {
|
|||||||
this.bbtv_ToDict(top_Json);
|
this.bbtv_ToDict(top_Json);
|
||||||
this.bbtv_ToDict(trending_Json);
|
this.bbtv_ToDict(trending_Json);
|
||||||
this.bbtv_cached_ToDict(global_Json);
|
this.bbtv_cached_ToDict(global_Json);
|
||||||
|
|
||||||
|
} catch (error) {
|
||||||
|
console.log('Could Not loadBTTVEmote:' + error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////
|
||||||
@@ -117,17 +122,34 @@ class Emotes {
|
|||||||
// loadFrankerEmotes is where we collect an object array of emotes from franker api
|
// loadFrankerEmotes is where we collect an object array of emotes from franker api
|
||||||
async loadFrankerEmotes(){
|
async loadFrankerEmotes(){
|
||||||
|
|
||||||
const franker_top_api_url = "https://api.frankerfacez.com/v1/emoticons?sort=count-desc";
|
// https://api.frankerfacez.com/v1/emoticons?sort=count-desc&page=2
|
||||||
|
|
||||||
|
try {
|
||||||
|
var page = 1;
|
||||||
|
var franker_top_api_url = `https://api.frankerfacez.com/v1/emoticons?sort=count-desc&page=${page}`;
|
||||||
|
|
||||||
const first50Response = await fetch(franker_top_api_url);
|
const first50Response = await fetch(franker_top_api_url);
|
||||||
var first50json = await first50Response.json();
|
var first50json = await first50Response.json();
|
||||||
var next50Link = first50json._links.next;
|
//var next50Link = first50json._links.next; // api change fix
|
||||||
const second50Response = await fetch(next50Link);
|
|
||||||
var second50json = await second50Response.json();
|
|
||||||
|
|
||||||
// Top 100
|
// Top 100
|
||||||
this.frankerToDict(first50json);
|
this.frankerToDict(first50json);
|
||||||
|
} catch (error) {
|
||||||
|
console.log('Could Not loadFrankerEmotes:' + error);
|
||||||
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
|
||||||
|
var page = 2;
|
||||||
|
var next50Link = `https://api.frankerfacez.com/v1/emoticons?sort=count-desc&page=${page}`;
|
||||||
|
|
||||||
|
const second50Response = await fetch(next50Link);
|
||||||
|
var second50json = await second50Response.json();
|
||||||
|
|
||||||
this.frankerToDict(second50json);
|
this.frankerToDict(second50json);
|
||||||
|
} catch (error) {
|
||||||
|
console.log('Could Not loadFrankerEmotes (second):' + error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////
|
||||||
@@ -152,10 +174,14 @@ class Emotes {
|
|||||||
|
|
||||||
// Global
|
// Global
|
||||||
const twitch_global_api_url = "https://api.twitchemotes.com/api/v4/channels/0";
|
const twitch_global_api_url = "https://api.twitchemotes.com/api/v4/channels/0";
|
||||||
|
|
||||||
|
try {
|
||||||
const twitch_global_api_response = await fetch(twitch_global_api_url);
|
const twitch_global_api_response = await fetch(twitch_global_api_url);
|
||||||
var twitch_global_Json = await twitch_global_api_response.json();
|
var twitch_global_Json = await twitch_global_api_response.json();
|
||||||
|
|
||||||
this.twitchToDict(twitch_global_Json);
|
this.twitchToDict(twitch_global_Json);
|
||||||
|
} catch (error) {
|
||||||
|
console.log('Could Not load loadTwitchEmotes:' + error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ♥
|
// ♥
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
|
|
||||||
"name": "WompChat",
|
"name": "WompChat",
|
||||||
"version": "1.0.4",
|
"version": "1.0.5",
|
||||||
"description": "Enhances the YouTube Live Streaming experience with Emotes, Custom Styling and quality of life improvements.",
|
"description": "Enhances the YouTube Live Streaming experience with Emotes, Custom Styling and quality of life improvements.",
|
||||||
"icons": {
|
"icons": {
|
||||||
"128": "assets/icons/logo128.png"
|
"128": "assets/icons/logo128.png"
|
||||||
|
|||||||
Reference in New Issue
Block a user