Bläddra i källkod

Merge branch 'main' into patch-1

DARKDRAGON532 3 år sedan
förälder
incheckning
53dbe52f88

+ 4 - 4
Extensions/UserScript/Return Youtube Dislike.user.js

@@ -4,7 +4,7 @@
 // @version      0.5
 // @description  Return of the YouTube Dislike, Based off https://www.returnyoutubedislike.com/
 // @author       Anarios & JRWR
-// @match      *://*.youtube.com/watch*
+// @match      *://*.youtube.com/*
 // @compatible chrome
 // @compatible firefox
 // @compatible opera
@@ -14,9 +14,9 @@
 // @updateURL https://github.com/Anarios/return-youtube-dislike/raw/main/Extensions/UserScript/Return%20Youtube%20Dislike.user.js
 // @grant GM.xmlHttpRequest
 // ==/UserScript==
-function cLog(text, subtext = "") {
-  subtext = subtext.trim() === "" ? "" : `(${subtext})`;
-  console.log(`[Return Youtube Dislikes] ${text} ${subtext}`);
+function cLog(text, subtext = '') {
+  subtext = subtext.trim() === '' ? '' : `(${subtext})`;
+  console.log(`[Return YouTube Dislikes] ${text} ${subtext}`);
 }
 
 function getButtons() {

+ 3 - 3
Extensions/chrome/popup.html

@@ -2,7 +2,7 @@
 <html lang="en">
   <head>
     <meta content="text/html; charset=utf-8">
-    <title>Return Youtube Dislike</title>
+    <title>Return YouTube Dislike</title>
     <link rel="stylesheet" href="popup.css">
   </head>
   <body>
@@ -10,11 +10,11 @@
 
     <center>
       <img src="icons/icon48.png" alt="Logo" />
-      <h1>Return Youtube Dislike</h1>
+      <h1>Return YouTube Dislike</h1>
       <p>by Dmitrii Selivanov & Community</p>
 
       <button id="link_website">Website</button>
-      <button id="link_github">Github</button>
+      <button id="link_github">GitHub</button>
       <button id="link_discord">Discord</button>
 
       <br>

+ 1 - 1
Extensions/firefox/manifest.json

@@ -1,5 +1,5 @@
 {
-  "name": "Return Youtube Dislike",
+  "name": "Return YouTube Dislike",
   "description": "Returns ability to see dislikes",
   "version": "0.0.0.9",
   "manifest_version": 2,

+ 3 - 3
Extensions/firefox/popup.html

@@ -2,7 +2,7 @@
 <html lang="en">
   <head>
     <meta content="text/html; charset=utf-8">
-    <title>Return Youtube Dislike</title>
+    <title>Return YouTube Dislike</title>
     <link rel="stylesheet" href="popup.css">
   </head>
   <body>
@@ -10,11 +10,11 @@
 
     <center>
       <img src="icons/icon48.png" alt="Logo" />
-      <h1>Return Youtube Dislike</h1>
+      <h1>Return YouTube Dislike</h1>
       <p>by Dmitrii Selivanov & Community</p>
 
       <button id="link_website">Website</button>
-      <button id="link_github">Github</button>
+      <button id="link_github">GitHub</button>
       <button id="link_discord">Discord</button>
 
       <br>

+ 2 - 2
StaticSiteOld/index.html

@@ -171,7 +171,7 @@
             extension users to derive actual dislike count on a video
           </p>
           <p>
-            Youtube has removed dislike statistics. Since this was a very
+            YouTube has removed dislike statistics. Since this was a very
             usefull feature - this extension aims to return this functionality
             to users.
           </p>
@@ -181,7 +181,7 @@
           </div>
           <p>
             We're considering integration with
-            <a href="https://vancedapp.com/">Youtube Vanced</a> mobile app, if
+            <a href="https://vancedapp.com/">YouTube Vanced</a> mobile app, if
             the devs will want to utilize our API
           </p>
 

+ 1 - 1
Website/README.md

@@ -1,4 +1,4 @@
-# Return-Youtube-Dislike
+# return-youtube-dislike-site
 
 ## Build Setup
 

+ 1 - 1
Website/layouts/default.vue

@@ -3,7 +3,7 @@
     <v-app-bar app color="lighten-2" flat>
 
       <v-tabs centered class="ml-n9" color="primary" router>
-        <v-tab v-for="link in links" :key="link" :to="link.path">
+        <v-tab v-for="link in links" :key="link.path" :to="link.path">
           {{ link.name }}
         </v-tab>
       </v-tabs>

+ 2 - 2
Website/nuxt.config.js

@@ -3,8 +3,8 @@ import colors from 'vuetify/es5/util/colors'
 export default {
   // Global page headers: https://go.nuxtjs.dev/config-head
   head: {
-    titleTemplate: 'Return Youtube Dislike',
-    title: 'Return Youtube Dislike',
+    titleTemplate: 'Return YouTube Dislike',
+    title: 'Return YouTube Dislike',
     htmlAttrs: {
       lang: 'en'
     },

+ 7 - 7
Website/pages/faq.vue

@@ -21,23 +21,23 @@
     data: () => ({
       items: [
         { 
-          question: "Where does extension get data?",
-          answer: "Combination of GoogleAPI data and scraped data. We save all available data to our DB for it to be available after google shuts down dislike counts in their API."
+          question: "Where does the extension get its data?",
+          answer: "A combination of Google's API data and scraped data. We save all available data to our DB so it can be made available after Google removes dislike counts from their API."
         },
         { 
-          question: "Video dislike count doesn't update",
-          answer: "Right now video dislikes are cached, and arent updated very frequenly. Once in 2-3 days, not more often Yeah, it's not ideal, but it is what it is. Working on improving how often we can update  them"
+          question: "Why isn't the dislike count updating?",
+          answer: "Right now video dislikes are cached and they arent updated very frequenly. Currently this is set to update once every 2–3 days.  This isn't ideal and we are working on improving how often we can update them"
         },
         { 
           question: "How does this work?",
-          answer: "The extension collects the video id of the video you are watching, fetches the dislike (and other fields like views, likes etc) using our API, if this is the first time the video was fetched by our API, it will use the YouTube API to get the data, then stores the data in a database for caching (cached for around 2-3 days) and archiving purposes and returns it to you. The extension then displays the dislikes to you."
+          answer: "The extension collects the video ID of the video you are watching, fetches the dislike (and other fields like views, likes etc) using our API, if this is the first time the video was fetched by our API, it will use the YouTube API to get the data, then store it in the database for caching (cached for around 2-3 days) and archiving purposes, and returns it to you. The extension then displays the dislike count and ratio on the page."
         },
         { 
           question: "What will happen after the YouTube API stops returning the dislike count?",
-          answer: "The backend will switch to using a combination of archived dislike stats, estimates extrapolated from extension user data and estimates based on view/like ratios for videos whose dislikes weren't archived and for outdated dislike archives."
+          answer: "The backend will switch to using a combination of archived dislike stats, estimates extrapolated from extension user data, and estimates based on view/like ratios for videos whose dislikes weren't archived as well as outdated dislike count archives."
         },
       ],
     }),
   
   }
-</script>
+</script>

+ 2 - 2
Website/pages/index.vue

@@ -1,7 +1,7 @@
 <template>
   <div>
 
-    <h1 style="font-size: 3em; margin-bottom:0;">Return Youtube Dislike</h1>
+    <h1 style="font-size: 3em; margin-bottom:0;">Return YouTube Dislike</h1>
     <div style="color: #999">
       <p style="margin-top: 0">Browser extension and an API that show you dislikes on youtube</p>
     </div>
@@ -15,7 +15,7 @@
 
     <v-btn class="mainAltButton" :href="githubLink" target="_blank">
       <v-icon style="margin-right: 0.5em;">mdi-github</v-icon>
-      Github
+      GitHub
     </v-btn>
 
     <v-btn class="mainAltButton" :href="discordLink" target="_blank">

+ 2 - 2
Website/pages/links.vue

@@ -9,7 +9,7 @@
 
     <v-btn class="mainAltButton" :href="githubLink" target="_blank">
       <v-icon style="margin-right: 0.5em;">mdi-github</v-icon>
-      Github
+      GitHub
     </v-btn>
 
     <v-btn class="mainAltButton" :href="discordLink" target="_blank">
@@ -47,4 +47,4 @@ export default {
     }
   }
 }
-</script>
+</script>