Просмотр исходного кода

Removed old files, temporary disabled webpack because it was not working

Dmitrii Selivanov 3 лет назад
Родитель
Сommit
1d33b7c5a2
30 измененных файлов с 10160 добавлено и 636 удалено
  1. BIN
      Extensions/combined/icons.zip
  2. 26 0
      Extensions/combined/manifest-firefox.json
  3. 25 11
      Extensions/combined/manifest.json
  4. 0 41
      Extensions/combined/manifestv3.json
  5. 11 3
      Extensions/combined/ryd.background.js
  6. 2 2
      Extensions/combined/ryd.content-script.js
  7. 0 89
      StaticSiteOld/donate.html
  8. BIN
      StaticSiteOld/files/chrome/return_youtube_dislike0.0.0.1.crx
  9. BIN
      StaticSiteOld/files/chrome/return_youtube_dislike0.0.0.2.crx
  10. BIN
      StaticSiteOld/files/chrome/return_youtube_dislike_LOAD_UNPACKED_0.0.0.3.zip
  11. BIN
      StaticSiteOld/files/chrome/return_youtube_dislike_LOAD_UNPACKED_0.0.0.5.zip
  12. BIN
      StaticSiteOld/files/chrome/return_youtube_dislike_LOAD_UNPACKED_0.0.0.6.zip
  13. BIN
      StaticSiteOld/files/chrome/return_youtube_dislike_LOAD_UNPACKED_0.0.0.7.zip
  14. 0 16
      StaticSiteOld/files/ff/updates.json
  15. BIN
      StaticSiteOld/files/ff/youtube_dislike_button-0.0.0.1-fx.xpi
  16. BIN
      StaticSiteOld/files/ff/youtube_dislike_button-0.0.0.2-fx.xpi
  17. BIN
      StaticSiteOld/images/DislikeScreenshot.JPG
  18. BIN
      StaticSiteOld/images/DragAndDrop.JPG
  19. BIN
      StaticSiteOld/images/EnableDeveloperMode.JPG
  20. BIN
      StaticSiteOld/images/OnHower.JPG
  21. BIN
      StaticSiteOld/images/Permissions.JPG
  22. BIN
      StaticSiteOld/images/aAGrY8L_700b.jpg
  23. BIN
      StaticSiteOld/images/chromeStore images/DislikeScreenshot.jpg
  24. BIN
      StaticSiteOld/images/chromeStore images/Untitled-1.jpg
  25. BIN
      StaticSiteOld/images/ratio.jpg
  26. BIN
      StaticSiteOld/images/screenshot1.jpg
  27. BIN
      StaticSiteOld/images/screenshotMain.JPG
  28. 0 464
      StaticSiteOld/index.html
  29. 10088 5
      package-lock.json
  30. 8 5
      package.json

BIN
Extensions/combined/icons.zip


+ 26 - 0
Extensions/combined/manifest-firefox.json

@@ -0,0 +1,26 @@
+{
+  "name": "Return YouTube Dislike",
+  "description": "Returns ability to see dislikes",
+  "version": "2.0.0.3",
+  "manifest_version": 2,
+  "background": {
+    "scripts": ["ryd.background.js"]
+  },
+  "icons": {
+    "48": "icons/icon48.png",
+   "128": "icons/icon128.png"
+  },
+  "permissions": ["activeTab", "*://*.youtube.com/*", "storage"],
+  "browser_action": {
+    "default_popup": "popup.html"
+  },
+  "content_scripts": [
+    {
+      "matches": ["*://*.youtube.com/*"],
+      "exclude_matches": ["*://*.music.youtube.com/*"],
+      "run_at": "document_idle",
+      "css": ["content-style.css"],
+      "js": ["ryd.content-script.js"]
+    }
+  ]
+}

+ 25 - 11
Extensions/combined/manifest.json

@@ -1,27 +1,41 @@
 {
   "name": "Return YouTube Dislike",
   "description": "Returns ability to see dislikes",
-  "version": "2.0.0.2",
-  "manifest_version": 2,
+  "version": "2.0.0.3",
+  "manifest_version": 3,
   "background": {
-    "scripts": ["ryd.background.js"]
+    "service_worker": "ryd.background.js"
   },
   "icons": {
     "48": "icons/icon48.png",
-   "128": "icons/icon128.png"
+    "128": "icons/icon128.png"
   },
-  "permissions": ["activeTab", "*://*.youtube.com/*", "storage"],
-  "browser_action": {
+  "host_permissions": ["*://*.youtube.com/*"],
+  "permissions": [
+    "storage"
+  ],
+  "action": {
     "default_popup": "popup.html"
   },
   "content_scripts": [
     {
-      "matches": ["*://*.youtube.com/*"],
+      "matches": [
+        "*://youtube.com/*",
+        "*://www.youtube.com/*",
+        "*://m.youtube.com/*"
+      ],
       "exclude_matches": ["*://*.music.youtube.com/*"],
-      "run_at": "document_idle",
-      "css": ["content-style.css"],
-      "js": ["bundled-content-script.js"]
+      "js": ["ryd.content-script.js"],
+      "css": ["content-style.css"]
+    }
+  ],
+  "externally_connectable": {
+    "matches": ["*://*.youtube.com/*"]
+  },
+  "web_accessible_resources": [
+    {
+      "resources": ["ryd.script.js"],
+      "matches": ["*://*.youtube.com/*"]
     }
   ]
-
 }

+ 0 - 41
Extensions/combined/manifestv3.json

@@ -1,41 +0,0 @@
-{
-  "name": "Return YouTube Dislike",
-  "description": "Returns ability to see dislikes",
-  "version": "2.0.0.2",
-  "manifest_version": 3,
-  "background": {
-    "service_worker": "ryd.background.js"
-  },
-  "icons": {
-    "48": "icons/icon48.png",
-    "128": "icons/icon128.png"
-  },
-  "host_permissions": ["*://*.youtube.com/*"],
-  "permissions": [
-    "storage"
-  ],
-  "action": {
-    "default_popup": "popup.html"
-  },
-  "content_scripts": [
-    {
-      "matches": [
-        "*://youtube.com/*",
-        "*://www.youtube.com/*",
-        "*://m.youtube.com/*"
-      ],
-      "exclude_matches": ["*://*.music.youtube.com/*"],
-      "js": ["bundled-content-script.js"],
-      "css": ["content-style.css"]
-    }
-  ],
-  "externally_connectable": {
-    "matches": ["*://*.youtube.com/*"]
-  },
-  "web_accessible_resources": [
-    {
-      "resources": ["ryd.script.js"],
-      "matches": ["*://*.youtube.com/*"]
-    }
-  ]
-}

+ 11 - 3
Extensions/combined/ryd.background.js

@@ -60,7 +60,8 @@ api.runtime.onMessage.addListener((request, sender, sendResponse) => {
 async function sendVote(videoId, vote) {
   api.storage.sync.get(null, async (storageResult) => {
     if (!storageResult.userId || !storageResult.registrationConfirmed) {
-      register().then(() => sendVote(videoId, vote));
+      await register();
+      return;
     }
     fetch(`${apiUrl}/interact/vote`, {
       method: "POST",
@@ -73,7 +74,14 @@ async function sendVote(videoId, vote) {
         value: vote,
       }),
     })
-      .then((response) => response.json())
+      .then(async (response) => {
+        if (response.status == 401) {
+          await register();
+          await sendVote(videoId, vote);
+          return;
+        }
+        return response.json()
+      })
       .then((response) => {
         solvePuzzle(response).then((solvedPuzzle) => {
           fetch(`${apiUrl}/interact/confirmVote`, {
@@ -123,7 +131,7 @@ function register() {
 }
 
 api.storage.sync.get(null, (res) => {
-  if (!res.userId || !res.registrationConfirmed) {
+  if (!res || !res.userId || !res.registrationConfirmed) {
     register();
   }
 });

+ 2 - 2
Extensions/combined/ryd.content-script.js

@@ -26,12 +26,12 @@ function RYD() {
     if (isMobile()) {
       return document.querySelector(".slim-video-action-bar-actions");
     }
-    //---   If Menu Element Is Displayed:   ---//
+    //   If Menu Element Is Displayed:
     if (document.getElementById("menu-container")?.offsetParent === null) {
       return document.querySelector(
         "ytd-menu-renderer.ytd-watch-metadata > div"
       );
-      //---   If Menu Element Isnt Displayed:   ---//
+      //   If Menu Element Isnt Displayed:
     } else {
       return document
         .getElementById("menu-container")

+ 0 - 89
StaticSiteOld/donate.html

@@ -1,89 +0,0 @@
-
-
-
-<!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>
-<nav class="navbar navbar-expand-lg navbar-light bg-light">
-  <div class="container-xxl">
-    <a class="navbar-brand" href="/">Return YouTube dislike count</a>
-    <button
-      class="navbar-toggler"
-      type="button"
-      data-bs-toggle="collapse"
-      data-bs-target="#navbarNav"
-      aria-controls="navbarNav"
-      aria-expanded="false"
-      aria-label="Toggle navigation"
-    >
-      <span class="navbar-toggler-icon"></span>
-    </button>
-    <div class="collapse navbar-collapse" id="navbarNav">
-      <ul class="navbar-nav">
-        <li class="nav-item">
-          <a class="nav-link" href="#donate">Donate</a>
-        </li>
-        <li class="nav-item">
-          <a class="nav-link" href="#downloads">Downloads</a>
-        </li>
-        <li class="nav-item">
-          <a class="nav-link" href="#installation">Installation</a>
-        </li>
-        <li class="nav-item">
-          <a class="nav-link" href="#faq">FAQ</a>
-        </li>
-        <li class="nav-item">
-          <a class="nav-link" href="#communication">Communication</a>
-        </li>
-        <li class="nav-item">
-          <a class="nav-link" href="#sources">Sources</a>
-        </li>
-      </ul>
-    </div>
-  </div>
-</nav>
-
-<div class="container">
-  <h3>Yoomoney donation</h3>
-  <iframe
-    src="https://yoomoney.ru/quickpay/shop-widget?writer=seller&targets=For%20returnyoutubedislike.com&targets-hint=&default-sum=&button-text=13&hint=&successURL=&quickpay=shop&account=410015901550027&"
-    width="423"
-    height="222"
-    frameborder="0"
-    allowtransparency="true"
-    scrolling="no"
-  ></iframe>
-</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>

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


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


BIN
StaticSiteOld/files/chrome/return_youtube_dislike_LOAD_UNPACKED_0.0.0.3.zip


BIN
StaticSiteOld/files/chrome/return_youtube_dislike_LOAD_UNPACKED_0.0.0.5.zip


BIN
StaticSiteOld/files/chrome/return_youtube_dislike_LOAD_UNPACKED_0.0.0.6.zip


BIN
StaticSiteOld/files/chrome/return_youtube_dislike_LOAD_UNPACKED_0.0.0.7.zip


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

@@ -1,16 +0,0 @@
-{
-  "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
StaticSiteOld/files/ff/youtube_dislike_button-0.0.0.1-fx.xpi


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


BIN
StaticSiteOld/images/DislikeScreenshot.JPG


BIN
StaticSiteOld/images/DragAndDrop.JPG


BIN
StaticSiteOld/images/EnableDeveloperMode.JPG


BIN
StaticSiteOld/images/OnHower.JPG


BIN
StaticSiteOld/images/Permissions.JPG


BIN
StaticSiteOld/images/aAGrY8L_700b.jpg


BIN
StaticSiteOld/images/chromeStore images/DislikeScreenshot.jpg


BIN
StaticSiteOld/images/chromeStore images/Untitled-1.jpg


BIN
StaticSiteOld/images/ratio.jpg


BIN
StaticSiteOld/images/screenshot1.jpg


BIN
StaticSiteOld/images/screenshotMain.JPG


+ 0 - 464
StaticSiteOld/index.html

@@ -1,464 +0,0 @@
-<!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>
-    <nav class="navbar navbar-expand-lg navbar-light bg-light">
-      <div class="container-xxl">
-        <a class="navbar-brand" href="/">Return YouTube dislike count</a>
-        <button
-          class="navbar-toggler"
-          type="button"
-          data-bs-toggle="collapse"
-          data-bs-target="#navbarNav"
-          aria-controls="navbarNav"
-          aria-expanded="false"
-          aria-label="Toggle navigation"
-        >
-          <span class="navbar-toggler-icon"></span>
-        </button>
-        <div class="collapse navbar-collapse" id="navbarNav">
-          <ul class="navbar-nav">
-            <li class="nav-item">
-              <a class="nav-link" href="#donate">Donate</a>
-            </li>
-            <li class="nav-item">
-              <a class="nav-link" href="#downloads">Downloads</a>
-            </li>
-            <li class="nav-item">
-              <a class="nav-link" href="#installation">Installation</a>
-            </li>
-            <li class="nav-item">
-              <a class="nav-link" href="#faq">FAQ</a>
-            </li>
-            <li class="nav-item">
-              <a class="nav-link" href="#communication">Communication</a>
-            </li>
-            <li class="nav-item">
-              <a class="nav-link" href="#sources">Sources</a>
-            </li>
-          </ul>
-        </div>
-      </div>
-    </nav>
-
-    <div class="container">
-      <div class="row justify-content-center">
-        <div class="col-lg-10 col-md-10 col-sm-12">
-          <h3 class="mt-4">
-            Chrome/Firefox/Usersript extension to return youtube dislike count
-          </h3>
-          <img
-            src="images/aAGrY8L_700b.jpg"
-            class="img-fluid"
-            style="height: 520px"
-          />
-
-          <p></p>
-          <p>
-            <a
-              href="https://addons.mozilla.org/en-US/firefox/addon/return-youtube-dislikes/"
-              ><img
-                src="https://img.shields.io/amo/stars/return-youtube-dislikes?label=Firefox%20Rating&amp;style=flat&amp;logo=firefox"
-                alt="Mozilla rating"
-            /></a>
-            <a
-              href="https://addons.mozilla.org/en-US/firefox/addon/return-youtube-dislikes/"
-              ><img
-                src="https://img.shields.io/amo/users/return-youtube-dislikes?label=Firefox%20Users&amp;style=flat&amp;logo=firefox"
-                alt="Mozilla downloads"
-            /></a>
-            <a
-              href="https://chrome.google.com/webstore/detail/youtube-dislike-button/gebbhagfogifgggkldgodflihgfeippi/"
-              ><img
-                src="https://img.shields.io/chrome-web-store/stars/gebbhagfogifgggkldgodflihgfeippi?label=Chrome%20Rating&amp;style=flat&amp;logo=google"
-                alt="Chrome Web Store"
-            /></a>
-            <a
-              href="https://chrome.google.com/webstore/detail/youtube-dislike-button/gebbhagfogifgggkldgodflihgfeippi/"
-              ><img
-                src="https://img.shields.io/chrome-web-store/users/gebbhagfogifgggkldgodflihgfeippi?label=Chrome%20Users&amp;style=flat&amp;logo=google"
-                alt="Chrome Web Store Users"
-            /></a>
-            <a
-              href="https://github.com/Anarios/return-youtube-dislike/commits/main"
-              ><img
-                src="https://img.shields.io/github/commit-activity/m/Anarios/return-youtube-dislike?label=Commits&amp;style=flat"
-                alt="Commit rate"
-            /></a>
-            <a href="https://github.com/Anarios/return-youtube-dislike/issues"
-              ><img
-                src="https://img.shields.io/github/issues/Anarios/return-youtube-dislike?style=flat&amp;label=Issues"
-                alt="Issues"
-            /></a>
-            <a href="https://discord.gg/UMxyMmCgfF"
-              ><img
-                src="https://img.shields.io/discord/909435648170160229?label=Discord&amp;style=flat&amp;logo=discord"
-                alt="Discord"
-            /></a>
-            <a
-              href="https://github.com/Anarios/return-youtube-dislike/blob/main/LICENSE"
-              ><img
-                src="https://img.shields.io/badge/License-GPLv3-blue.svg?style=flat"
-                alt="License"
-            /></a>
-          </p>
-
-          <p>
-            <strong
-              >Version 0.0.0.7 released - great improvements in how fast you see
-              dislikes</strong
-            >, and added ability to see full (unshortened) likes and dislikes on
-            hower over rating bar
-          </p>
-          <h4 id="chrome-top">Chrome</h4>
-          <p>
-            <a
-              href="https://chrome.google.com/webstore/detail/youtube-dislike-button/gebbhagfogifgggkldgodflihgfeippi/"
-              target="_blank"
-            >
-              Available in official Chrome store</a
-            >
-          </p>
-          <p>
-            <strong>NEVER INSTALL 2 VERSIONS OF ADDON AT THE SAME TIME</strong>.
-            I.e. an unpacked version from this page, and another version from
-            chrome store. It will cause bugs
-          </p>
-
-          <h4>Firefox</h4>
-          <p>
-            Now
-            <a
-              href="https://addons.mozilla.org/en-US/firefox/addon/return-youtube-dislikes/"
-            >
-              available in official Firefox store</a
-            >
-          </p>
-          <h4 id="donate">Donate</h4>
-          <p>You can support our efforts to keep internet free by a donation</p>
-          <p>
-            <a href="https://www.patreon.com/returnyoutubedislike">Patreon</a>
-          </p>
-          <p>
-            <a href="/donate.html">Yoomoney</a>
-          </p>
-          <p><a>ko-fi</a> UPDATE: ko-fi (and paypal donations) doesn't work in my country</p>
-
-          <h4 class="mt-5">General information</h4>
-          <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>
-          <div>
-            Currently available only for Chrome and Firefox desktop browsers.
-            Coming to mobile soon.
-          </div>
-          <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-2" src="images/DislikeScreenshot.JPG" />
-          <img class="img-fluid mb-2" src="images/ratio.jpg" />
-          <img class="img-fluid mb-5" src="images/OnHower.JPG" />
-
-          <hr />
-
-          <section id="downloads" class="pb-5">
-            <h2>Downloads:</h2>
-            <p>
-              <strong>This is an ALPHA version!</strong> It may be slow. It may
-              be buggy.
-            </p>
-            <p>
-              Only available for chrome and Firefox now and as a Userscript now,
-              but coming to other platforms soon
-            </p>
-            <h4>Chrome:</h4>
-            <p>
-              <a
-                href="https://chrome.google.com/webstore/detail/youtube-dislike-button/gebbhagfogifgggkldgodflihgfeippi/"
-                target="_blank"
-              >
-                Available in official Chrome store</a
-              >
-            </p>
-
-            <h3 class="mt-3">Unpacked files download</h3>
-            <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>
-            <p>
-              <a
-                href="files/chrome/return_youtube_dislike_LOAD_UNPACKED_0.0.0.3.zip"
-                >v_0.0.0.3</a
-              >
-            </p>
-            <p>0.0.0.4 <strong> removed (accidental self-ddos)</strong></p>
-            <p>
-              <a
-                href="files/chrome/return_youtube_dislike_LOAD_UNPACKED_0.0.0.5.zip"
-                >0.0.0.5</a
-              >
-              - ratio bar added. Dislikes from every video on page are saved now
-              Previous versions are disabled automatically by chrome, because
-              Chrome doesn't like .crx extensions. Install this following new
-              instructions.
-            </p>
-            <p>
-              <a
-                href="files/chrome/return_youtube_dislike_LOAD_UNPACKED_0.0.0.6.zip"
-                >0.0.0.6</a
-              >
-              Greatly improved performance for non-cached videos. You can see
-              actual number of votes (not shortened) on hover over rating bar
-            </p>
-
-            <p>
-              <a
-                href="files/chrome/return_youtube_dislike_LOAD_UNPACKED_0.0.0.7.zip"
-                >0.0.0.7</a
-              >
-              Bugfixes
-            </p>
-
-            <h4>Firefox:</h4>
-
-            Install from extension's official firefox
-            <a
-              href="https://addons.mozilla.org/en-US/firefox/addon/return-youtube-dislikes/"
-              target="_blank"
-            >
-              addon store page</a
-            >. Check for updates often - this extension is being actively
-            improved Latest version coming out as soon as update is approved by
-            Mozilla
-
-            <p></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
-              >
-            </p>
-          </section>
-          <hr />
-          <section id="installation" class="pb-5">
-            <h2>Installation from unpacked files on chrome</h2>
-            <p>
-              <strong
-                >You only need this if you don't want to install from
-                store</strong
-              >
-            </p>
-            <p>
-              <strong
-                >Before installing new version - please manually delete old
-                version</strong
-              >
-            </p>
-
-            <p>
-              Installation is described for Chrome. For firefox extension is
-              available in store
-            </p>
-            <ol>
-              <li>
-                Download latest version for you browser. Extract .zip file
-                contents into empty folder
-              </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>Press "Load unpacked</p>
-              </li>
-              <li>Press "Add extension" button</li>
-              <li>
-                Select the folder that you extracted .zip file contents into
-              </li>
-            </ol>
-          </section>
-          <hr />
-          <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>
-          <hr />
-          <section id="communication" class="pb-5">
-            <h2>Communication</h2>
-            <h4>Email</h4>
-            <span>You can mail me at</span>
-            <a
-              href="mailto:selivano.d@gmail.com?subject=Return-youtube-dislike-count&body=Message"
-            >
-              selivano.d@gmail.com
-            </a>
-            <br />
-            <br />
-            <h4>Discord server</h4>
-            <a href="https://discord.gg/UMxyMmCgfF">Join</a> a discord
-            discussion
-          </section>
-          <hr />
-          <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>
-    <!--<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>

Разница между файлами не показана из-за своего большого размера
+ 10088 - 5
package-lock.json


+ 8 - 5
package.json

@@ -4,8 +4,8 @@
   "description": "Chrome extension to return youtube dislikes",
   "main": "ryd.content-script.js",
   "scripts": {
-    "start": "node_modules/.bin/webpack \"./Extensions/combined/ryd.content-script.js\" -o \"./Extensions/combined\" --watch",
-    "build": "node_modules/.bin/webpack \"./Extensions/combined/ryd.content-script.js\" -o \"./Extensions/combined\"",
+    "start": "webpack \"./Extensions/combined/ryd.content-script.js\" -o \"./Extensions/combined/dist/\" --watch",
+    "build": "webpack \"./Extensions/combined/ryd.content-script.js\" -o \"./Extensions/combined\"",
     "test": "echo \"Error: no test specified\" && exit 1"
   },
   "repository": {
@@ -24,11 +24,14 @@
   },
   "homepage": "https://github.com/Anarios/return-youtube-dislike#readme",
   "devDependencies": {
+    "@babel/core": "^7.16.5",
+    "@babel/preset-env": "^7.16.5",
     "babel-loader": "^8.2.3",
     "babel-preset-es2015": "^6.24.1",
     "babel-register": "^6.26.0",
-    "webpack": "^5.65.0",
-    "webpack-cli": "^4.9.1",
-    "webpack-dev-server": "^4.6.0"
+    "copy-webpack-plugin": "^6.0.3",
+    "webpack": "~4.41.2",
+    "webpack-cli": "~3.3.10",
+    "webpack-merge": "~4.2.2"
   }
 }

Некоторые файлы не были показаны из-за большого количества измененных файлов