浏览代码

Site updated, 0.0.0.7 minor fix

Dmitrii Selivanov 3 年之前
父节点
当前提交
8ad8380b60

+ 1 - 1
Extensions/chrome/manifest.json

@@ -1,7 +1,7 @@
 {
   "name": "Youtube Dislike Button",
   "description": "Returns ability to see dislikes",
-  "version": "0.0.0.6",
+  "version": "0.0.0.7",
   "manifest_version": 3,
   "background": {
     "service_worker": "background.js"

+ 3 - 2
Extensions/chrome/script.js

@@ -76,7 +76,6 @@
               statsSet = true;
             }
           } catch (e) {
-            debugger;
             statsSet = false;
           }
         }
@@ -187,7 +186,7 @@
     ></div>
   </div>
 
-  <span class="ryd-tooltiptext ryd-tooltip-top">${likes}&nbsp;/&nbsp;${dislikes}</span>
+  <span id="ryd-dislike-tooltip" class="ryd-tooltiptext ryd-tooltip-top">${likes}&nbsp;/&nbsp;${dislikes}</span>
 </div>
 `
       );
@@ -197,6 +196,8 @@
       ).style.width = widthPx + 'px';
       document.getElementById('return-youtube-dislike-bar').style.width =
         widthPercent + '%';
+
+      document.getElementById('ryd-dislike-tooltip').innerHTML = `${likes}&nbsp;/&nbsp;${dislikes}`
     }
   }
 

+ 1 - 1
Extensions/firefox/manifest.json

@@ -1,7 +1,7 @@
 {
   "name": "Youtube Dislike Button",
   "description": "Returns ability to see dislikes",
-  "version": "0.0.0.6",
+  "version": "0.0.0.7",
   "manifest_version": 2,
   "background": {
     "scripts": ["background.js"]

+ 4 - 1
Extensions/firefox/script.js

@@ -192,7 +192,7 @@ function createRateBar(likes, dislikes) {
     ></div>
   </div>
 
-  <span class="ryd-tooltiptext ryd-tooltip-top">${likes}&nbsp;/&nbsp;${dislikes}</span>
+  <span i="ryd-dislike-tooltip" class="ryd-tooltiptext ryd-tooltip-top">${likes}&nbsp;/&nbsp;${dislikes}</span>
 </div>
 `
     );
@@ -202,6 +202,9 @@ function createRateBar(likes, dislikes) {
     ).style.width = widthPx + "px";
     document.getElementById("return-youtube-dislike-bar").style.width =
       widthPercent + "%";
+    document.getElementById(
+      "ryd-dislike-tooltip"
+    ).innerHTML = `${likes}&nbsp;/&nbsp;${dislikes}`;
   }
 }
 

二进制
StaticSite/files/chrome/return_youtube_dislike_LOAD_UNPACKED_0.0.0.7.zip


二进制
StaticSite/images/OnHower.JPG


二进制
StaticSite/images/chromeStore images/DislikeScreenshot.jpg


二进制
StaticSite/images/chromeStore images/Untitled-1.jpg


+ 79 - 13
StaticSite/index.html

@@ -58,17 +58,60 @@
           <h3 class="mt-4">
             Chrome/Firefox/Usersript extension to return youtube dislike count
           </h3>
-          <img src="images/aAGrY8L_700b.jpg" class="img-fluid" />
+          <img
+            src="images/aAGrY8L_700b.jpg"
+            class="img-fluid"
+            style="height: 520px"
+          />
 
           <p>
             <strong
-              >Version 0.0.0.5 released - ratio (like/dislike) bar added</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>
+          <img class="img-fluid mb-5" src="images/OnHower.JPG" />
+
+          <h4 id="chrome-top">CHROME</h4>
+          <p>
+            Old version is
+            <a
+              href="https://addons.mozilla.org/en-US/firefox/addon/return-youtube-dislikes/"
+            >
+              available in official Chrome store</a
             >
           </p>
+          <p>But, it's 0.0.0.1, and the latest version is 0.0.0.7</p>
           <p>
-            Now <a href="https://addons.mozilla.org/en-US/firefox/addon/return-youtube-dislikes/"> available in official Firefox store</a>
+            If you'd like to help - please download and rate Chrome version from
+            official store
           </p>
-          <img class="img-fluid mb-5" src="images/ratio.jpg" />
+          <p>
+            0.0.0.1 is slow and lacks features. If you care about features and
+            performance - please install the latest version from unpacked files
+            bellow following <a href="#downloads">the instructions</a> bellow.
+          </p>
+          <p>
+            0.0.0.6 is submitted to chrome store for review, but it's takes long
+            time.
+          </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 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
@@ -100,7 +143,8 @@
             before it was removed
           </p>
           <p>Like/dislike ratio bar is coming soon</p>
-          <img class="img-fluid mb-5" src="images/DislikeScreenshot.JPG" />
+          <img class="img-fluid mb-2" src="images/DislikeScreenshot.JPG" />
+          <img class="img-fluid mb-5" src="images/ratio.jpg" />
 
           <hr />
 
@@ -115,6 +159,10 @@
               but coming to other platforms soon
             </p>
             <h4>Chrome:</h4>
+            <p>
+              Old version available in official store, everything explained
+              <a href="#chrome-top"> at the top of the page </a>
+            </p>
             <p>
               <a href="files/chrome/return_youtube_dislike0.0.0.1.crx"
                 >v_0.0.0.1</a
@@ -124,7 +172,7 @@
               <a href="files/chrome/return_youtube_dislike0.0.0.2.crx"
                 >v_0.0.0.2</a
               >
-              - Better number formatting added,
+              - Better number formatting added, thanks, <strong>bstka</strong>
             </p>
             <p>
               <a
@@ -143,14 +191,31 @@
               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
+            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
@@ -215,7 +280,7 @@
           </section>
           <hr />
           <section id="installation" class="pb-5">
-            <h2>Installation on chrome</h2>
+            <h2>Installation from unpacked files on chrome</h2>
             <p>
               <strong
                 >Before installing new version - please manually delete old
@@ -311,7 +376,8 @@
             <br />
             <br />
             <h4>Discord server</h4>
-            <a href="https://discord.gg/UMxyMmCgfF">Join</a> a discord discussion
+            <a href="https://discord.gg/UMxyMmCgfF">Join</a> a discord
+            discussion
           </section>
           <hr />
           <section id="sources" class="pb-5">