Переглянути джерело

Static site added to repo. FF extension API url fixed from local

Dmitrii Selivanov 3 роки тому
батько
коміт
e8a5dacb1f

+ 0 - 1
.gitignore

@@ -1,4 +1,3 @@
 *.idea
 *Backend
 *cert
-*StaticSite

+ 1 - 1
Extensions/firefox/background.js

@@ -1,4 +1,4 @@
-const apiUrl = "https://localhost:7258";
+const apiUrl = "https://return-youtube-dislike-api.azurewebsites.net";
 
 browser.runtime.onMessage.addListener((request, sender, sendResponse) => {
   if (request.message === "get_auth_token") {

+ 1 - 7
Extensions/firefox/manifest.json

@@ -16,12 +16,6 @@
       "js": ["content-script.js"],
       "run_at": "document_idle"
     }
-  ],
-  "browser_specific_settings": {
-    "gecko": {
-      "id": "returnyoutubedislike@returnyoutubedislike.com",
-      "update_url": "https://returnyoutubedislike.com/files/ff/updates.json"
-    }
-  }
+  ]
 
 }

BIN
StaticSite/files/chrome/return_youtube_dislike0.0.0.1.crx


BIN
StaticSite/files/chrome/return_youtube_dislike0.0.0.2.crx


+ 16 - 0
StaticSite/files/ff/updates.json

@@ -0,0 +1,16 @@
+{
+  "addons": {
+    "{912e2f00-777e-4437-a0c7-2403e2651e41}": {
+      "updates": [
+        {
+          "version": "0.0.0.1",
+          "update_link": "https://returnyoutubedislike.com/files/ff/youtube_dislike_button-0.0.0.1-fx.xpi"
+        },
+        {
+          "version": "0.0.0.2",
+		  "update_link": "https://returnyoutubedislike.com/files/ff/youtube_dislike_button-0.0.0.2-fx.xpi"
+        }
+      ]
+    }
+  }
+}

BIN
StaticSite/files/ff/youtube_dislike_button-0.0.0.1-fx.xpi


BIN
StaticSite/files/ff/youtube_dislike_button-0.0.0.2-fx.xpi


BIN
StaticSite/images/DislikeScreenshot.JPG


BIN
StaticSite/images/DragAndDrop.JPG


BIN
StaticSite/images/EnableDeveloperMode.JPG


BIN
StaticSite/images/Permissions.JPG


BIN
StaticSite/images/aAGrY8L_700b.jpg


BIN
StaticSite/images/screenshot1.jpg


BIN
StaticSite/images/screenshotMain.JPG


+ 185 - 0
StaticSite/index.html

@@ -0,0 +1,185 @@
+<!doctype html>
+<html lang="en">
+<head>
+  <!-- Required meta tags -->
+  <meta charset="utf-8">
+  <meta name="viewport" content="width=device-width, initial-scale=1">
+
+  <!-- Bootstrap CSS -->
+  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet"
+    integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
+
+  <title>Return youtube dislike count</title>
+</head>
+<body>
+<div class="container">
+  <div class="row justify-content-center">
+    <div class="col-lg-8 col-md-10 col-sm-12">
+      <h2 class="mt-4">Chrome/Firefox/Usersript extension to return youtube dislike count</h2>
+      <img src="images/aAGrY8L_700b.jpg" class="img-fluid"/>
+      <p><strong>Now <a href="https://addons.mozilla.org/en-US/firefox/addon/return-youtube-dislikes/">available</a> in
+        firefox addon store! </strong></p>
+      <p>This is a Chrome/Firefox/Userscript extension that return dislike statistics to YouTube. For now, it only works
+        if
+        a video had public display of dislikes enabled before YouTube removed dislike stats.</p>
+
+      <p>Base dislike stats are retrieved from YouTube API while it's available. When API closes - the extension will
+        use data from extension users to derive actual dislike count on a video</p>
+      <p>Youtube has removed dislike statistics. Since this was a very usefull feature -
+        this extension aims to return this functionality to users.
+      </p>
+      <p>
+        Currently available only for Chrome and Firefox desktop browsers. Coming to mobile soon.
+      </p>
+      <p>We're considering integration with <a href="https://vancedapp.com/">Youtube Vanced</a> mobile app, if the devs
+        will want to utilize our API</p>
+
+
+      <p>The downvotes count looks like this, similar to what it used to be before it was removed</p>
+      <p>Like/dislike ratio bar is coming soon</p>
+      <img class="img-fluid mb-5" src="images/DislikeScreenshot.JPG"/>
+
+      <section id="downloads" class="pb-5">
+        <h2>Downloads:</h2>
+        <p><strong>This is an ALHPA version!</strong> It may be slow. It may be buggy.</p>
+        <p>Only available for chrome and Firefox now, but coming to other platforms soon</p>
+        <h4>Chrome:</h4>
+        <p>
+          <a href="files/chrome/return_youtube_dislike0.0.0.1.crx">v_0.0.0.1</a></p>
+        <p><a href="files/chrome/return_youtube_dislike0.0.0.2.crx">v_0.0.0.2</a> - Better number formatting added,
+          thanks <strong>bstka</strong>
+        </p>
+
+        <h4>Firefox:</h4>
+
+       Install from extension's firefox addon store <a href="https://addons.mozilla.org/en-US/firefox/addon/return-youtube-dislikes/" target="_blank">page</a>.
+        Check for updates often - this extension is being actively improved
+
+        <p>
+
+
+        <div class="accordion" id="accordionExample">
+          <div class="accordion-item">
+            <h2 class="accordion-header" id="headingTwo">
+              <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse"
+                data-bs-target="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
+                Outdated installation via files
+              </button>
+            </h2>
+            <div id="collapseTwo" class="accordion-collapse collapse" aria-labelledby="headingTwo"
+              data-bs-parent="#accordionExample">
+              <div class="accordion-body">
+                <div class="card card-body">
+
+                  <p> NOT RECOMMENDED! Use firefox addon store <a href="https://addons.mozilla.org/en-US/firefox/addon/return-youtube-dislikes/" target="_blank">link</a>
+                  </p>
+                  <p>
+                    <a href="files/ff/youtube_dislike_button-0.0.0.1-fx.xpi">v_0.0.0.1</a>
+                  </p>
+                  <p><a href="files/ff/youtube_dislike_button-0.0.0.2-fx.xpi">v_0.0.0.2</a> - Better number formatting added
+                    thanks, <strong>bstka</strong>
+                  </p>
+                </div>
+              </div>
+            </div>
+          </div>
+        </div>
+
+
+        <h4 class="pt-5">Userscript, tested on Tampermonkey</h4>
+        <p><a
+          href="https://github.com/Anarios/return-youtube-dislike/raw/main/Extensions/UserScript/Return%20Youtube%20Dislike.user.js">
+          https://github.com/Anarios/return-youtube-dislike/raw/main/Extensions/UserScript/Return%20Youtube%20Dislike.user.js</a>
+          </a></p>
+      </section>
+      <section in="installation" class="pb-5">
+        <h2>Installation on chrome</h2>
+        <strong>Before installing new version - please manually delete old version</strong>
+        <p> Installation is described for Chrome. Process is very similar in Firefox</p>
+        <ol>
+          <li>
+            Download latest version for you browser
+          </li>
+          <li>
+            <p>Write chrome://extensions in url bar.</p>
+            <p>Or press ... in right corner => Settings => Extensions</p>
+          </li>
+          <li>
+            Enable Developer Mode
+            <img class="img-fluid mb-3" src="images/EnableDeveloperMode.JPG"/>
+          </li>
+          <li>
+            <p>Drag and drop the return_youtube_dislike_xxxx file that you just downloaded into chrome extensions
+              page</p>
+            <img class="img-fluid mb-3" src="images/DragAndDrop.JPG"/>
+          </li>
+          <li>Press "Add extension" button</li>
+        </ol>
+      </section>
+      <section id="faq" class="pb-4">
+        <h2>FAQ</h2>
+        <ol>
+          <li>
+            <strong>Why is it not in chrome store yet?</strong>
+            <p>Chrome extension appoval process takes some time. As soon as it's available in the store - We'll update
+              the
+              site</p>
+          </li>
+          <li>
+            <strong>Is it dangerous?/Is it a virus?</strong>
+            <p>While there is some trust involved in installing an extension from 3-rd party source
+              - you can see all permissions requested by the extension before installing it. This extension only asks
+              for
+              access
+              to youtube.com page</p>
+            <img class="img-fluid mb-3" src="images/Permissions.JPG"/>
+          </li>
+          <li>
+            <strong>I downvoted a video, and downvotes number didn't change</strong>
+            <p>Currently we're using YouTube API to get dislikes count. It may take some time for data to be updated.
+              YouTube might freeze
+              dislike counts as well. We're working on a solution for this</p>
+          </li>
+        </ol>
+
+        For anything else contact us at email\discord channel listed in Communication section
+      </section>
+
+      <section id="communication" class="pb-5">
+        <h2>Communication</h2>
+        <h4>Email</h4>
+        <p>You can mail me at selivano.d@gmail.com</p>
+        <h4>Discord server</h4>
+        <a href="https://discord.gg/HvwXNG4M">Join</a> a discord discussion
+      </section>
+      <section id="sources" class="pb-5">
+        <h2> Sources </h2>
+        <a
+          href="https://github.com/Anarios/return-youtube-dislike">https://github.com/Anarios/return-youtube-dislike</a>
+      </section>
+
+
+      <br>
+      <br>
+
+    </div>
+  </div>
+</div>
+
+</div>
+<!--<img src="images/aAGrY8L_700b.jpg"/>-->
+<!--<img src="images/aAGrY8L_700b.jpg"/>-->
+<!-- Optional JavaScript; choose one of the two! -->
+
+<!-- Option 1: Bootstrap Bundle with Popper -->
+<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"
+  integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p"
+  crossorigin="anonymous"></script>
+
+<!-- Option 2: Separate Popper and Bootstrap JS -->
+<!--
+<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.10.2/dist/umd/popper.min.js" integrity="sha384-7+zCNj/IqJ95wo16oMtfsKbZ9ccEh31eOz1HGyDuCQ6wgnyJNSYdrPa03rtR1zdB" crossorigin="anonymous"></script>
+<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js" integrity="sha384-QJHtvGhmr9XOIpI6YVutG+2QOK9T+ZnN4kzFN1RtK3zEFEIsxhlmWl5/YESvpZ13" crossorigin="anonymous"></script>
+-->
+</body>
+</html>