diff --git a/.gitignore b/.gitignore index c7ebb0d..b9ddf28 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,7 @@ dev-build node_modules build -*.psd \ No newline at end of file +*.psd +*.ai +cdn/ +artwork/ diff --git a/cdn/assets/fonts/youtube-sans-bold.ttf b/cdn/assets/fonts/youtube-sans-bold.ttf deleted file mode 100644 index 3ebd568..0000000 Binary files a/cdn/assets/fonts/youtube-sans-bold.ttf and /dev/null differ diff --git a/cdn/assets/gif/clickUserNamesToAtThem.gif b/cdn/assets/gif/clickUserNamesToAtThem.gif deleted file mode 100644 index 77639a6..0000000 Binary files a/cdn/assets/gif/clickUserNamesToAtThem.gif and /dev/null differ diff --git a/cdn/assets/gif/emotesMenu.gif b/cdn/assets/gif/emotesMenu.gif deleted file mode 100644 index 02e6848..0000000 Binary files a/cdn/assets/gif/emotesMenu.gif and /dev/null differ diff --git a/cdn/assets/gif/optionsMenu.gif b/cdn/assets/gif/optionsMenu.gif deleted file mode 100644 index e5896ff..0000000 Binary files a/cdn/assets/gif/optionsMenu.gif and /dev/null differ diff --git a/cdn/assets/gif/pinYourExtension.gif b/cdn/assets/gif/pinYourExtension.gif deleted file mode 100644 index 5521371..0000000 Binary files a/cdn/assets/gif/pinYourExtension.gif and /dev/null differ diff --git a/cdn/assets/gif/theaterMode.gif b/cdn/assets/gif/theaterMode.gif deleted file mode 100644 index 49ffced..0000000 Binary files a/cdn/assets/gif/theaterMode.gif and /dev/null differ diff --git a/cdn/assets/icons/icon.psd b/cdn/assets/icons/icon.psd deleted file mode 100644 index 9fa92e9..0000000 Binary files a/cdn/assets/icons/icon.psd and /dev/null differ diff --git a/cdn/assets/icons/icon128.png b/cdn/assets/icons/icon128.png deleted file mode 100644 index cfcf5b4..0000000 Binary files a/cdn/assets/icons/icon128.png and /dev/null differ diff --git a/cdn/assets/icons/icon48.png b/cdn/assets/icons/icon48.png deleted file mode 100644 index 1d55d57..0000000 Binary files a/cdn/assets/icons/icon48.png and /dev/null differ diff --git a/cdn/assets/icons/icon512.png b/cdn/assets/icons/icon512.png deleted file mode 100644 index 5afa3a7..0000000 Binary files a/cdn/assets/icons/icon512.png and /dev/null differ diff --git a/cdn/assets/img/btc.JPG b/cdn/assets/img/btc.JPG deleted file mode 100644 index d42f164..0000000 Binary files a/cdn/assets/img/btc.JPG and /dev/null differ diff --git a/cdn/assets/screenShots/arrow.png b/cdn/assets/screenShots/arrow.png deleted file mode 100644 index e272dee..0000000 Binary files a/cdn/assets/screenShots/arrow.png and /dev/null differ diff --git a/cdn/assets/screenShots/extScreenShots.psd b/cdn/assets/screenShots/extScreenShots.psd deleted file mode 100644 index d4ba677..0000000 Binary files a/cdn/assets/screenShots/extScreenShots.psd and /dev/null differ diff --git a/cdn/assets/screenShots/screen1.png b/cdn/assets/screenShots/screen1.png deleted file mode 100644 index 05fb3e6..0000000 Binary files a/cdn/assets/screenShots/screen1.png and /dev/null differ diff --git a/cdn/assets/screenShots/screen2.png b/cdn/assets/screenShots/screen2.png deleted file mode 100644 index bc8915a..0000000 Binary files a/cdn/assets/screenShots/screen2.png and /dev/null differ diff --git a/cdn/assets/screenShots/screen3.png b/cdn/assets/screenShots/screen3.png deleted file mode 100644 index 1f6ea86..0000000 Binary files a/cdn/assets/screenShots/screen3.png and /dev/null differ diff --git a/cdn/assets/screenShots/screen4.png b/cdn/assets/screenShots/screen4.png deleted file mode 100644 index 8a774cd..0000000 Binary files a/cdn/assets/screenShots/screen4.png and /dev/null differ diff --git a/cdn/assets/screenShots/screenShot1.jpg b/cdn/assets/screenShots/screenShot1.jpg deleted file mode 100644 index 7d50d1a..0000000 Binary files a/cdn/assets/screenShots/screenShot1.jpg and /dev/null differ diff --git a/cdn/assets/screenShots/screenShot2.jpg b/cdn/assets/screenShots/screenShot2.jpg deleted file mode 100644 index 30efed5..0000000 Binary files a/cdn/assets/screenShots/screenShot2.jpg and /dev/null differ diff --git a/cdn/assets/screenShots/screenShot3.jpg b/cdn/assets/screenShots/screenShot3.jpg deleted file mode 100644 index 6978c1f..0000000 Binary files a/cdn/assets/screenShots/screenShot3.jpg and /dev/null differ diff --git a/cdn/assets/screenShots/screenShot4.jpg b/cdn/assets/screenShots/screenShot4.jpg deleted file mode 100644 index 63e6589..0000000 Binary files a/cdn/assets/screenShots/screenShot4.jpg and /dev/null differ diff --git a/cdn/assets/screenShots/screenShot5.jpg b/cdn/assets/screenShots/screenShot5.jpg deleted file mode 100644 index e4f3206..0000000 Binary files a/cdn/assets/screenShots/screenShot5.jpg and /dev/null differ diff --git a/package-lock.json b/package-lock.json index a01d0f6..8b17cdf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "Womp", + "name": "WompChat", "version": "1.0.3", "lockfileVersion": 1, "requires": true, @@ -674,14 +674,6 @@ "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", "dev": true }, - "axios": { - "version": "0.19.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.19.2.tgz", - "integrity": "sha512-fjgm5MvRHLhx+osE2xoekY70AhARk3a6hkN+3Io1jc00jtquGvxYlKlsFUhmUET0V5te6CcZI7lcv2Ym61mjHA==", - "requires": { - "follow-redirects": "1.5.10" - } - }, "babel-code-frame": { "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", @@ -1398,15 +1390,11 @@ "resolved": "https://registry.npmjs.org/cyclist/-/cyclist-1.0.1.tgz", "integrity": "sha1-WW6WmP0MgOEgOMK4LW6xs1tiJNk=" }, - "date-fns": { - "version": "1.30.1", - "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-1.30.1.tgz", - "integrity": "sha512-hBSVCvSmWC+QypYObzwGOd9wqdDpOt+0wl0KbU+R+uuZBS1jN8VsD1ss3irQDknRj5NvxiTF6oj/nDRnN/UQNw==" - }, "debug": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", + "dev": true, "requires": { "ms": "2.0.0" } @@ -1883,14 +1871,6 @@ "readable-stream": "^2.3.6" } }, - "follow-redirects": { - "version": "1.5.10", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.10.tgz", - "integrity": "sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==", - "requires": { - "debug": "=3.1.0" - } - }, "for-in": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", @@ -2681,7 +2661,8 @@ "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true }, "nanomatch": { "version": "1.2.13", diff --git a/package.json b/package.json index 09d27c9..7399c7f 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,6 @@ "url": "git://github.com/wompmacho/live-chat.git" }, "dependencies": { - "axios": "^0.19.0", - "date-fns": "^1.29.0", "lodash": "^4.17.15", "preact": "^8.2.7", "uglifyjs-webpack-plugin": "^1.3.0" diff --git a/src/assets/icons/icon128.png b/src/assets/icons/icon128.png deleted file mode 100644 index cfcf5b4..0000000 Binary files a/src/assets/icons/icon128.png and /dev/null differ diff --git a/src/assets/icons/icon48.png b/src/assets/icons/icon48.png deleted file mode 100644 index 1d55d57..0000000 Binary files a/src/assets/icons/icon48.png and /dev/null differ diff --git a/src/assets/icons/icon512.png b/src/assets/icons/icon512.png deleted file mode 100644 index 5afa3a7..0000000 Binary files a/src/assets/icons/icon512.png and /dev/null differ diff --git a/src/assets/icons/logo128.png b/src/assets/icons/logo128.png new file mode 100644 index 0000000..2b84707 Binary files /dev/null and b/src/assets/icons/logo128.png differ diff --git a/src/assets/icons/logo_icon.svg b/src/assets/icons/logo_icon.svg new file mode 100644 index 0000000..05f91ed --- /dev/null +++ b/src/assets/icons/logo_icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/background/Setup.js b/src/background/Setup.js index d57a858..bd964d2 100644 --- a/src/background/Setup.js +++ b/src/background/Setup.js @@ -29,9 +29,9 @@ const ensure = () => { return true; }; - chrome.tabs.create({ url: './html/welcome.html' }); + chrome.tabs.create({ url: 'html/welcome.html' }); chrome.runtime.onMessage.addListener(onSetupComplete); - console.log('Setup Complete'); + console.log('Storage Setup Complete, Linking User To Welcome Page.'); }); }; diff --git a/src/background/index.js b/src/background/index.js index 544e848..c5935cd 100644 --- a/src/background/index.js +++ b/src/background/index.js @@ -1,7 +1,5 @@ import PersistentSyncStorage from 'src/helpers/PersistentSyncStorage'; - import Setup from './Setup'; - import CONFIG from 'src/config'; class Main { diff --git a/src/config.js b/src/config.js index ed5fffd..8274f6b 100644 --- a/src/config.js +++ b/src/config.js @@ -1,4 +1,3 @@ - const CONFIG = { defaultOptions: { @@ -6,9 +5,9 @@ const CONFIG = { enableBTTVEmotes: true, enableFrankerEmotes: true, enableTwitchEmotes: true, - kappaFix: true, // Chat Options + kappaFix: true, theaterModeFix: false, setAuthorColor: false, showTimeStamp: false, @@ -16,9 +15,11 @@ const CONFIG = { hideAuthorIcons: false, hideWelcomBanner: false, setTwitchColors: false, - textSizeSlider: 'inherit', setLiveChat: true, allowTextSlider: false, + + // Var + textSizeSlider: 'inherit', } }; diff --git a/src/content/Message.js b/src/content/Message.js index 2d2d429..ccbfe17 100644 --- a/src/content/Message.js +++ b/src/content/Message.js @@ -1,8 +1,6 @@ import Emotes from './Emotes'; import PersistentSyncStorage from 'src/helpers/PersistentSyncStorage'; -var colorNumberIndex = 0; - class Message { constructor(messageNode) { this.node = messageNode; @@ -178,11 +176,6 @@ class Message { /////////////////////////////////////////////////////////////////// - // Set Alternate message Colors - if (PersistentSyncStorage.data.options.alternateLineColor) { - this.alternateLineColor(); - } - }// end setDefaultSelections setAuthorColor() { @@ -210,20 +203,6 @@ class Message { } } - /////////////////////////////////////////////////////////////////// - - // changes color every line - alternateLineColor(){ - - if(colorNumberIndex % 2 == 0){ - this.node.classList.add("set-background-color-one"); - } - if(colorNumberIndex % 2 !== 0){ - this.node.classList.add("set-background-color-two"); - } - colorNumberIndex++; - } - /////////////////////////////////////////////////////////////////// // removes color attr diff --git a/src/content/index.js b/src/content/index.js index 6f604da..e8e3d6c 100644 --- a/src/content/index.js +++ b/src/content/index.js @@ -17,7 +17,6 @@ document.body.appendChild(theater_wrapper); var alreadyTheater = false; // --- - class Main { constructor() { this.chatWatcher = null; @@ -26,14 +25,6 @@ class Main { this.onRouteChange = this.onRouteChange.bind(this); this.load(); - - // button class - ytp-size-button ytp-button - // right player controls - ytp-right-controls - // player div id - ytd-player - // chatframe id - chatframe - // movieframe id - movie_player_fix - // dono ticker id - ticker - // player-theater-container } load() { @@ -58,6 +49,11 @@ class Main { setDefaults() { + // Set Hide Welcome Banner + if (PersistentSyncStorage.data.options.alternateLineColor) { + document.querySelector('#items.style-scope.yt-live-chat-item-list-renderer').classList.add('alternateLineColor'); + } + /////////////////////////////////////////////////////////////////// // Welcome Banner diff --git a/src/helpers/OpenActiveTab.js b/src/helpers/OpenActiveTab.js index b22d1dd..e894a90 100644 --- a/src/helpers/OpenActiveTab.js +++ b/src/helpers/OpenActiveTab.js @@ -1,5 +1,4 @@ - /* Open new tab if tab is not already open, otherwise focus that tab */ export default url => { const matchUrl = url.replace(/^(https|http)/i, '*'); @@ -11,10 +10,4 @@ export default url => { chrome.tabs.create({ url }); } }); - - // for(let i = 0, tab; tab = tabs[i]; i++) { - // if(tab.url && tab.url === url) { - // return; - // } - // } }; diff --git a/src/html/options.html b/src/html/options.html index 310a18c..e4ed560 100644 --- a/src/html/options.html +++ b/src/html/options.html @@ -1,31 +1,17 @@
- -Were changing our name!
-Aparently LIVE CHAT was a bad idea. Now We Are WOMP -
- - - -- There is still a lot of stuff I am working on. This is very Beta at the moment so -
-- This is a Chrome Extension for Youtube Live Streams, adding some Quality of Life improvements for the Chat. - Adds Top, Trending and Global (500ish) Emotes from popular sites. These Update with what is Trending. -
-- Don't forget to pin this extension for easy access. -
-
- - Youtube Live is slow to load its pages currently. - Give the extension a moment while the page's iframes are loading. - Once you see the Emote Panel Icon you can open the Emote Selection Panel. -
-
- - Enhanced Theater Mode Is Now Available. Just click the check in the option panel and refresh your page. -
-
- - Over around 500 Top and Trending Emotes are loaded from popular sites. - You can Enable/Disable them in the Options Menu. -
-
- - Can Also Click on UserNames To Autofill an @ Notification -
-
-
-