From 9d7c3b4869ec2a1220e10fa8a93ee324bac70503 Mon Sep 17 00:00:00 2001 From: aditya Date: Sun, 9 Jan 2022 20:16:13 +0530 Subject: [PATCH 01/25] Added tips(resolves issue 388) --- Extensions/combined/popup.css | 18 +++++++++++++----- Extensions/combined/popup.html | 4 ++-- Extensions/combined/popup.js | 12 ++++++++++++ 3 files changed, 27 insertions(+), 7 deletions(-) diff --git a/Extensions/combined/popup.css b/Extensions/combined/popup.css index b56ca6a..45a02cb 100644 --- a/Extensions/combined/popup.css +++ b/Extensions/combined/popup.css @@ -49,8 +49,8 @@ button:hover { bottom: 1.15rem; right: 1.15rem; background: var(--secondary); - border-radius: .25rem; - padding: .25rem .5rem; + border-radius: 0.25rem; + padding: 0.25rem 0.5rem; } #advancedToggle { @@ -58,7 +58,8 @@ button:hover { background: none; box-shadow: none; color: var(--lightGrey); - top: 26px; right: 26px; + top: 26px; + right: 26px; padding: 2px; z-index: 69; height: 2rem; @@ -77,12 +78,13 @@ button:hover { #advancedSettings { opacity: 0; pointer-events: none; - transition-duration: .15s; + transition-duration: 0.15s; transition-timing-function: ease-in-out; transform: scale(1.1); position: fixed; background: var(--background); - top: 10px; right: 14px; + top: 10px; + right: 14px; width: calc(100% - 65px); height: calc(100% - 58px); border: 2px solid var(--secondary); @@ -161,3 +163,9 @@ input:checked + .slider:before { /* filter: invert(21%) sepia(100%) saturate(3618%) hue-rotate(102deg) brightness(96%) contrast(108%); */ } + +#tips { + border: 3px dashed var(--tertiary); + border-radius: 4px; + padding: 0.4rem; +} diff --git a/Extensions/combined/popup.html b/Extensions/combined/popup.html index fc15114..312b686 100644 --- a/Extensions/combined/popup.html +++ b/Extensions/combined/popup.html @@ -34,7 +34,7 @@

- +

API Status:

- +

diff --git a/Extensions/combined/popup.js b/Extensions/combined/popup.js index 4ccfdf2..437141f 100644 --- a/Extensions/combined/popup.js +++ b/Extensions/combined/popup.js @@ -13,8 +13,14 @@ const config = { donate: "https://returnyoutubedislike.com/donate", faq: "https://returnyoutubedislike.com/faq", }, + tips: [ + 'If you have stopped seeing the dislike count, try disabling and re-enabling the plugin.' + ] }; +/* Tips */ +renderTip(); + /* Links */ document.getElementById("link_website").addEventListener("click", () => { chrome.tabs.create({ url: config.links.website }); @@ -114,6 +120,12 @@ function handleDisableVoteSubmissionChangeEvent(value) { } })(); + +function renderTip(){ + document.getElementById('tips').innerText = config.tips[Math.floor(Math.random()*config.tips.length)]; + +} + /* popup-script.js document.querySelector('#login') .addEventListener('click', function () { From 57c1e5c1b31c42fe0b31bd2a808da15707e7199d Mon Sep 17 00:00:00 2001 From: Front <27463495+Frontesque@users.noreply.github.com> Date: Sun, 9 Jan 2022 22:02:49 -0500 Subject: [PATCH 02/25] troubleshooter --- Website/nuxt.config.js | 4 +- Website/package-lock.json | 231 +++++++++++++++++++++++++++++++++ Website/package.json | 1 + Website/pages/troubleshoot.vue | 219 +++++++++++++++++++++++++++++++ 4 files changed, 453 insertions(+), 2 deletions(-) create mode 100644 Website/pages/troubleshoot.vue diff --git a/Website/nuxt.config.js b/Website/nuxt.config.js index 165bff8..f42c388 100644 --- a/Website/nuxt.config.js +++ b/Website/nuxt.config.js @@ -31,14 +31,14 @@ export default { apiUrl: "https://returnyoutubedislikeapi.com", }, - //server: { host: '0.0.0.0', port: 80 }, //LINE FOR DEBUGGING ONLY + server: { host: '0.0.0.0', port: 80 }, //LINE FOR DEBUGGING ONLY target: "static", css: [], plugins: [], components: true, buildModules: ["@nuxtjs/vuetify"], - modules: ["nuxt-user-agent"], + modules: ['@nuxtjs/axios','nuxt-user-agent'], // Vuetify module configuration: https://go.nuxtjs.dev/config-vuetify vuetify: { diff --git a/Website/package-lock.json b/Website/package-lock.json index f25acec..f0ba5a7 100644 --- a/Website/package-lock.json +++ b/Website/package-lock.json @@ -8,6 +8,7 @@ "name": "return-youtube-dislike-site", "version": "1.1.0", "dependencies": { + "@nuxtjs/axios": "^5.13.6", "core-js": "^3.15.1", "nuxt": "^2.15.7", "nuxt-user-agent": "^1.2.2", @@ -2644,6 +2645,31 @@ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" }, + "node_modules/@nuxtjs/axios": { + "version": "5.13.6", + "resolved": "https://registry.npmjs.org/@nuxtjs/axios/-/axios-5.13.6.tgz", + "integrity": "sha512-XS+pOE0xsDODs1zAIbo95A0LKlilvJi8YW0NoXYuq3/jjxGgWDxizZ6Yx0AIIjZOoGsXJOPc0/BcnSEUQ2mFBA==", + "dependencies": { + "@nuxtjs/proxy": "^2.1.0", + "axios": "^0.21.1", + "axios-retry": "^3.1.9", + "consola": "^2.15.3", + "defu": "^5.0.0" + } + }, + "node_modules/@nuxtjs/axios/node_modules/defu": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/defu/-/defu-5.0.0.tgz", + "integrity": "sha512-VHg73EDeRXlu7oYWRmmrNp/nl7QkdXUxkQQKig0Zk8daNmm84AbGoC8Be6/VVLJEKxn12hR0UBmz8O+xQiAPKQ==" + }, + "node_modules/@nuxtjs/proxy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@nuxtjs/proxy/-/proxy-2.1.0.tgz", + "integrity": "sha512-/qtoeqXgZ4Mg6LRg/gDUZQrFpOlOdHrol/vQYMnKu3aN3bP90UfOUB3QSDghUUK7OISAJ0xp8Ld78aHyCTcKCQ==", + "dependencies": { + "http-proxy-middleware": "^1.0.6" + } + }, "node_modules/@nuxtjs/vuetify": { "version": "1.12.1", "resolved": "https://registry.npmjs.org/@nuxtjs/vuetify/-/vuetify-1.12.1.tgz", @@ -2677,6 +2703,14 @@ "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-5.1.2.tgz", "integrity": "sha512-h4lTMgMJctJybDp8CQrxTUiiYmedihHWkjnF/8Pxseu2S6Nlfcy8kwboQ8yejh456rP2yWoEVm1sS/FVsfM48w==" }, + "node_modules/@types/http-proxy": { + "version": "1.17.8", + "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.8.tgz", + "integrity": "sha512-5kPLG5BKpWYkw/LVOGWpiq3nEVqxiN32rTgI53Sk12/xHFQ2rG3ehI9IO+O3W2QoKeyB92dJkoka8SUm6BX1pA==", + "dependencies": { + "@types/node": "*" + } + }, "node_modules/@types/json-schema": { "version": "7.0.9", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.9.tgz", @@ -3417,6 +3451,23 @@ "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-0.2.1.tgz", "integrity": "sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA==" }, + "node_modules/axios": { + "version": "0.21.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", + "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", + "dependencies": { + "follow-redirects": "^1.14.0" + } + }, + "node_modules/axios-retry": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/axios-retry/-/axios-retry-3.2.4.tgz", + "integrity": "sha512-Co3UXiv4npi6lM963mfnuH90/YFLKWWDmoBYfxkHT5xtkSSWNqK9zdG3fw5/CP/dsoKB5aMMJCsgab+tp1OxLQ==", + "dependencies": { + "@babel/runtime": "^7.15.4", + "is-retry-allowed": "^2.2.0" + } + }, "node_modules/babel-eslint": { "version": "10.1.0", "resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-10.1.0.tgz", @@ -6043,6 +6094,11 @@ "node": ">= 0.6" } }, + "node_modules/eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" + }, "node_modules/events": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", @@ -6529,6 +6585,25 @@ "readable-stream": "^2.3.6" } }, + "node_modules/follow-redirects": { + "version": "1.14.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.6.tgz", + "integrity": "sha512-fhUl5EwSJbbl8AR+uYL2KQDxLkdSjZGR36xy46AO7cOMTrCMON6Sa28FmAnC2tRTDbd/Uuzz3aJBv7EBN7JH8A==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, "node_modules/for-in": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", @@ -7278,6 +7353,45 @@ "node": ">= 0.6" } }, + "node_modules/http-proxy": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", + "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", + "dependencies": { + "eventemitter3": "^4.0.0", + "follow-redirects": "^1.0.0", + "requires-port": "^1.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/http-proxy-middleware": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-1.3.1.tgz", + "integrity": "sha512-13eVVDYS4z79w7f1+NPllJtOQFx/FdUW4btIvVRMaRlUY9VGstAbo5MOhLEuUgZFRHn3x50ufn25zkj/boZnEg==", + "dependencies": { + "@types/http-proxy": "^1.17.5", + "http-proxy": "^1.18.1", + "is-glob": "^4.0.1", + "is-plain-obj": "^3.0.0", + "micromatch": "^4.0.2" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/http-proxy-middleware/node_modules/is-plain-obj": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", + "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/https-browserify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", @@ -7835,6 +7949,17 @@ "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz", "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==" }, + "node_modules/is-retry-allowed": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-2.2.0.tgz", + "integrity": "sha512-XVm7LOeLpTW4jV19QSH38vkswxoLud8sQ57YwJVTPWdiaI9I8keEhGFpBlslyVsgdQy4Opg8QOLb8YRgsyZiQg==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/is-shared-array-buffer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.1.tgz", @@ -11112,6 +11237,11 @@ "node": ">=0.10.0" } }, + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=" + }, "node_modules/resolve": { "version": "1.20.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", @@ -16642,6 +16772,33 @@ } } }, + "@nuxtjs/axios": { + "version": "5.13.6", + "resolved": "https://registry.npmjs.org/@nuxtjs/axios/-/axios-5.13.6.tgz", + "integrity": "sha512-XS+pOE0xsDODs1zAIbo95A0LKlilvJi8YW0NoXYuq3/jjxGgWDxizZ6Yx0AIIjZOoGsXJOPc0/BcnSEUQ2mFBA==", + "requires": { + "@nuxtjs/proxy": "^2.1.0", + "axios": "^0.21.1", + "axios-retry": "^3.1.9", + "consola": "^2.15.3", + "defu": "^5.0.0" + }, + "dependencies": { + "defu": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/defu/-/defu-5.0.0.tgz", + "integrity": "sha512-VHg73EDeRXlu7oYWRmmrNp/nl7QkdXUxkQQKig0Zk8daNmm84AbGoC8Be6/VVLJEKxn12hR0UBmz8O+xQiAPKQ==" + } + } + }, + "@nuxtjs/proxy": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@nuxtjs/proxy/-/proxy-2.1.0.tgz", + "integrity": "sha512-/qtoeqXgZ4Mg6LRg/gDUZQrFpOlOdHrol/vQYMnKu3aN3bP90UfOUB3QSDghUUK7OISAJ0xp8Ld78aHyCTcKCQ==", + "requires": { + "http-proxy-middleware": "^1.0.6" + } + }, "@nuxtjs/vuetify": { "version": "1.12.1", "resolved": "https://registry.npmjs.org/@nuxtjs/vuetify/-/vuetify-1.12.1.tgz", @@ -16675,6 +16832,14 @@ "resolved": "https://registry.npmjs.org/@types/html-minifier-terser/-/html-minifier-terser-5.1.2.tgz", "integrity": "sha512-h4lTMgMJctJybDp8CQrxTUiiYmedihHWkjnF/8Pxseu2S6Nlfcy8kwboQ8yejh456rP2yWoEVm1sS/FVsfM48w==" }, + "@types/http-proxy": { + "version": "1.17.8", + "resolved": "https://registry.npmjs.org/@types/http-proxy/-/http-proxy-1.17.8.tgz", + "integrity": "sha512-5kPLG5BKpWYkw/LVOGWpiq3nEVqxiN32rTgI53Sk12/xHFQ2rG3ehI9IO+O3W2QoKeyB92dJkoka8SUm6BX1pA==", + "requires": { + "@types/node": "*" + } + }, "@types/json-schema": { "version": "7.0.9", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.9.tgz", @@ -17301,6 +17466,23 @@ } } }, + "axios": { + "version": "0.21.4", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", + "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", + "requires": { + "follow-redirects": "^1.14.0" + } + }, + "axios-retry": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/axios-retry/-/axios-retry-3.2.4.tgz", + "integrity": "sha512-Co3UXiv4npi6lM963mfnuH90/YFLKWWDmoBYfxkHT5xtkSSWNqK9zdG3fw5/CP/dsoKB5aMMJCsgab+tp1OxLQ==", + "requires": { + "@babel/runtime": "^7.15.4", + "is-retry-allowed": "^2.2.0" + } + }, "babel-eslint": { "version": "10.1.0", "resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-10.1.0.tgz", @@ -19311,6 +19493,11 @@ "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=" }, + "eventemitter3": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz", + "integrity": "sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==" + }, "events": { "version": "3.3.0", "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", @@ -19695,6 +19882,11 @@ "readable-stream": "^2.3.6" } }, + "follow-redirects": { + "version": "1.14.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.6.tgz", + "integrity": "sha512-fhUl5EwSJbbl8AR+uYL2KQDxLkdSjZGR36xy46AO7cOMTrCMON6Sa28FmAnC2tRTDbd/Uuzz3aJBv7EBN7JH8A==" + }, "for-in": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", @@ -20257,6 +20449,35 @@ "toidentifier": "1.0.0" } }, + "http-proxy": { + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/http-proxy/-/http-proxy-1.18.1.tgz", + "integrity": "sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ==", + "requires": { + "eventemitter3": "^4.0.0", + "follow-redirects": "^1.0.0", + "requires-port": "^1.0.0" + } + }, + "http-proxy-middleware": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-1.3.1.tgz", + "integrity": "sha512-13eVVDYS4z79w7f1+NPllJtOQFx/FdUW4btIvVRMaRlUY9VGstAbo5MOhLEuUgZFRHn3x50ufn25zkj/boZnEg==", + "requires": { + "@types/http-proxy": "^1.17.5", + "http-proxy": "^1.18.1", + "is-glob": "^4.0.1", + "is-plain-obj": "^3.0.0", + "micromatch": "^4.0.2" + }, + "dependencies": { + "is-plain-obj": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-3.0.0.tgz", + "integrity": "sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA==" + } + } + }, "https-browserify": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", @@ -20652,6 +20873,11 @@ "resolved": "https://registry.npmjs.org/is-resolvable/-/is-resolvable-1.1.0.tgz", "integrity": "sha512-qgDYXFSR5WvEfuS5dMj6oTMEbrrSaM0CrFk2Yiq/gXnBvD9pMa2jGXxyhGLfvhZpuMZe18CJpFxAt3CRs42NMg==" }, + "is-retry-allowed": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/is-retry-allowed/-/is-retry-allowed-2.2.0.tgz", + "integrity": "sha512-XVm7LOeLpTW4jV19QSH38vkswxoLud8sQ57YwJVTPWdiaI9I8keEhGFpBlslyVsgdQy4Opg8QOLb8YRgsyZiQg==" + }, "is-shared-array-buffer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/is-shared-array-buffer/-/is-shared-array-buffer-1.0.1.tgz", @@ -23285,6 +23511,11 @@ "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", "dev": true }, + "requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha1-kl0mAdOaxIXgkc8NpcbmlNw9yv8=" + }, "resolve": { "version": "1.20.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", diff --git a/Website/package.json b/Website/package.json index 03b6ce9..10a6115 100644 --- a/Website/package.json +++ b/Website/package.json @@ -10,6 +10,7 @@ "lint": "eslint --fix --ext .js,.vue --ignore-path .eslintignore ." }, "dependencies": { + "@nuxtjs/axios": "^5.13.6", "core-js": "^3.15.1", "nuxt": "^2.15.7", "nuxt-user-agent": "^1.2.2", diff --git a/Website/pages/troubleshoot.vue b/Website/pages/troubleshoot.vue new file mode 100644 index 0000000..405bb12 --- /dev/null +++ b/Website/pages/troubleshoot.vue @@ -0,0 +1,219 @@ + + + + + \ No newline at end of file From 8ce9f7e712122c73489871b0b8515ccad5ea2ea2 Mon Sep 17 00:00:00 2001 From: aditya Date: Mon, 10 Jan 2022 08:59:51 +0530 Subject: [PATCH 03/25] removed "tip", added help button. --- Extensions/combined/popup.css | 6 ----- Extensions/combined/popup.html | 4 +--- Extensions/combined/popup.js | 41 ++++++++++------------------------ 3 files changed, 13 insertions(+), 38 deletions(-) diff --git a/Extensions/combined/popup.css b/Extensions/combined/popup.css index 45a02cb..c996a14 100644 --- a/Extensions/combined/popup.css +++ b/Extensions/combined/popup.css @@ -163,9 +163,3 @@ input:checked + .slider:before { /* filter: invert(21%) sepia(100%) saturate(3618%) hue-rotate(102deg) brightness(96%) contrast(108%); */ } - -#tips { - border: 3px dashed var(--tertiary); - border-radius: 4px; - padding: 0.4rem; -} diff --git a/Extensions/combined/popup.html b/Extensions/combined/popup.html index 312b686..2cfb6da 100644 --- a/Extensions/combined/popup.html +++ b/Extensions/combined/popup.html @@ -26,15 +26,13 @@ -
- +

-

API Status:

{ - chrome.tabs.create({ url: config.links.website }); -}); - -document.getElementById("link_github").addEventListener("click", () => { - chrome.tabs.create({ url: config.links.github }); -}); - -document.getElementById("link_discord").addEventListener("click", () => { - chrome.tabs.create({ url: config.links.discord }); -}); - -document.getElementById("link_faq").addEventListener("click", () => { - chrome.tabs.create({ url: config.links.faq }); -}); - -document.getElementById("link_donate").addEventListener("click", () => { - chrome.tabs.create({ url: config.links.donate }); -}); +createLink(config.links.website,"link_website") +createLink(config.links.github,"link_github") +createLink(config.links.discord,"link_discord") +createLink(config.links.faq,"link_faq") +createLink(config.links.donate,"link_donate") +createLink(config.links.help,"link_help") +function createLink(url,id) { + document.getElementById(id).addEventListener("click",()=>{ + chrome.tabs.create({ url: url}) + }) +} document .getElementById("disable_vote_submission") .addEventListener("click", (ev) => { @@ -121,11 +109,6 @@ function handleDisableVoteSubmissionChangeEvent(value) { })(); -function renderTip(){ - document.getElementById('tips').innerText = config.tips[Math.floor(Math.random()*config.tips.length)]; - -} - /* popup-script.js document.querySelector('#login') .addEventListener('click', function () { From 126362c5be8f74e20348d3f8a507703c73423095 Mon Sep 17 00:00:00 2001 From: aditya Date: Mon, 10 Jan 2022 09:07:17 +0530 Subject: [PATCH 04/25] fixed minor spelling mistake in website --- Website/pages/help.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Website/pages/help.vue b/Website/pages/help.vue index eaed8af..8b8adcc 100644 --- a/Website/pages/help.vue +++ b/Website/pages/help.vue @@ -89,7 +89,7 @@
  • Take screenshot of extensions page of your browser with extension installed.
    - To see extensions put this into adress bar: + To see extensions put this into address bar:
    about:addons for Firefox
    From 3162074b5a4e03db73c2e5c2992e1dd42d3ddb33 Mon Sep 17 00:00:00 2001 From: Front <27463495+Frontesque@users.noreply.github.com> Date: Sun, 9 Jan 2022 22:47:26 -0500 Subject: [PATCH 05/25] add extension interface --- Website/pages/troubleshoot.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Website/pages/troubleshoot.vue b/Website/pages/troubleshoot.vue index 405bb12..933d7b4 100644 --- a/Website/pages/troubleshoot.vue +++ b/Website/pages/troubleshoot.vue @@ -1,5 +1,7 @@ - - + + From 7a01751faac12a10539475b9e422acfe8dbc3247 Mon Sep 17 00:00:00 2001 From: Nikita Krupin Date: Wed, 12 Jan 2022 12:57:30 -0500 Subject: [PATCH 21/25] compact code blocks, more polite unsupported platform warnings --- Website/layouts/default.vue | 10 ++++++---- Website/pages/docs/fetching.vue | 13 ++++--------- 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/Website/layouts/default.vue b/Website/layouts/default.vue index 1e38e4e..86c231a 100644 --- a/Website/layouts/default.vue +++ b/Website/layouts/default.vue @@ -75,7 +75,7 @@ export default { let chrome = window.navigator.userAgent.match(/Chrome\/(\d+)/); let chromeVersion = chrome ? chrome[1] : 0; if (chromeVersion < 70) { - this.alert.html = `You are using ${this.$ua._parsed.name} ${this.$ua._parsed.version}. Please update to the latest version.`; + this.alert.html = `${this.$ua._parsed.name} ${this.$ua._parsed.version} is not supported. Consider updating to the latest version.`; this.alert.show = true; } } @@ -85,7 +85,7 @@ export default { let firefox = window.navigator.userAgent.match(/Firefox\/(\d+)/); let firefoxVersion = firefox ? firefox[1] : 0; if (firefoxVersion < 60) { - this.alert.html = `You are using ${this.$ua._parsed.name} ${this.$ua._parsed.version}. Please update to the latest version.`; + this.alert.html = `${this.$ua._parsed.name} ${this.$ua._parsed.version} is not supported. Consider updating to the latest version.`; this.alert.show = true; } } @@ -98,7 +98,7 @@ export default { // Win7 if (window.navigator.userAgent.indexOf("Windows NT 6.1") > -1) { - this.alert.html = `Windows 7 is not supported. Update Windows, or install Linux :)`; + this.alert.html = `Windows 7 is not supported. Consider upgrading Windows, or installing Linux.`; this.alert.show = true; } }, 1000); @@ -177,7 +177,9 @@ body { font-size: 2rem; } .topBar { - width: calc(100vw - 2rem) !important; /* (2rem = mx-4) 1rem on left, 1rem on right */ + width: calc( + 100vw - 2rem + ) !important; /* (2rem = mx-4) 1rem on left, 1rem on right */ padding: 0; } } diff --git a/Website/pages/docs/fetching.vue b/Website/pages/docs/fetching.vue index 16b380a..96eac2e 100644 --- a/Website/pages/docs/fetching.vue +++ b/Website/pages/docs/fetching.vue @@ -3,9 +3,7 @@

    Basic Fetching Tutorial

    Example to get votes of a given YouTube video ID: - kxOuG8jMIgI + kxOuG8jMIgI

    Example Request:

    Request URL: @@ -47,12 +45,8 @@
    - An invalid YouTube ID will return status code 404 "Not Found".
    - An incorrectly formatted YouTube ID will return 400 "Bad - Request". + An invalid YouTube ID will return status code 404 "Not Found".
    + An incorrectly formatted YouTube ID will return 400 "Bad Request".
    @@ -75,5 +69,6 @@ export default { background: #353535; border-radius: 0.5rem; font-family: monospace; + line-height: 2rem; } From 9f8fe1bd104e08edff08886cb446b601892a122a Mon Sep 17 00:00:00 2001 From: Nikita Krupin Date: Wed, 12 Jan 2022 13:19:59 -0500 Subject: [PATCH 22/25] more concise unsupported platform detector --- Website/layouts/default.vue | 42 +++++++++++++-------------------- Website/pages/docs/fetching.vue | 12 +++++++--- Website/pages/help.vue | 24 ++++++++++++------- 3 files changed, 40 insertions(+), 38 deletions(-) diff --git a/Website/layouts/default.vue b/Website/layouts/default.vue index 86c231a..7382b5e 100644 --- a/Website/layouts/default.vue +++ b/Website/layouts/default.vue @@ -40,7 +40,13 @@ @@ -67,38 +73,22 @@ export default { }), mounted() { setTimeout(() => { - // Chrome < 70 + // Chrome < 70 or FF < 60 if ( - window.navigator.userAgent.indexOf("Chrome") > -1 && - window.navigator.userAgent.indexOf("Edge") === -1 + (this.$ua._parsed.name == "Chrome" && + parseInt(this.$ua._parsed.version.slice(0, 2)) < 70) || + (this.$ua._parsed.name == "Firefox" && + parseInt(this.$ua._parsed.version.slice(0, 2)) < 60) ) { - let chrome = window.navigator.userAgent.match(/Chrome\/(\d+)/); - let chromeVersion = chrome ? chrome[1] : 0; - if (chromeVersion < 70) { - this.alert.html = `${this.$ua._parsed.name} ${this.$ua._parsed.version} is not supported. Consider updating to the latest version.`; - this.alert.show = true; - } - } - - // FF < 60 - if (window.navigator.userAgent.indexOf("Firefox") > -1) { - let firefox = window.navigator.userAgent.match(/Firefox\/(\d+)/); - let firefoxVersion = firefox ? firefox[1] : 0; - if (firefoxVersion < 60) { - this.alert.html = `${this.$ua._parsed.name} ${this.$ua._parsed.version} is not supported. Consider updating to the latest version.`; - this.alert.show = true; - } - } - - // IE - if (window.navigator.userAgent.indexOf("MSIE") > -1) { - this.alert.html = `Looks like you're using Internet Explorer. Stop it, get some help.`; + this.alert.html = ` + ${this.$ua._parsed.name} ${this.$ua._parsed.version.slice(0, 2)} + is not supported. Consider upgrading to the latest version.`; this.alert.show = true; } // Win7 if (window.navigator.userAgent.indexOf("Windows NT 6.1") > -1) { - this.alert.html = `Windows 7 is not supported. Consider upgrading Windows, or installing Linux.`; + this.alert.html = `Windows 7 is not supported. Consider upgrading Windows, or installing Linux.`; this.alert.show = true; } }, 1000); diff --git a/Website/pages/docs/fetching.vue b/Website/pages/docs/fetching.vue index 96eac2e..f3d9d1b 100644 --- a/Website/pages/docs/fetching.vue +++ b/Website/pages/docs/fetching.vue @@ -3,7 +3,9 @@

    Basic Fetching Tutorial

    Example to get votes of a given YouTube video ID: -
    kxOuG8jMIgI + kxOuG8jMIgI

    Example Request:

    Request URL: @@ -45,8 +47,12 @@
    - An invalid YouTube ID will return status code 404 "Not Found".
    - An incorrectly formatted YouTube ID will return 400 "Bad Request". + An invalid YouTube ID will return status code 404 "Not Found".
    + An incorrectly formatted YouTube ID will return 400 "Bad + Request".
    diff --git a/Website/pages/help.vue b/Website/pages/help.vue index e08fabb..82ca645 100644 --- a/Website/pages/help.vue +++ b/Website/pages/help.vue @@ -1,5 +1,8 @@