Эх сурвалжийг харах

Site updated, 0.0.0.7 minor fix

Dmitrii Selivanov 3 жил өмнө
parent
commit
8ad8380b60

+ 1 - 1
Extensions/chrome/manifest.json

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

+ 3 - 2
Extensions/chrome/script.js

@@ -76,7 +76,6 @@
               statsSet = true;
               statsSet = true;
             }
             }
           } catch (e) {
           } catch (e) {
-            debugger;
             statsSet = false;
             statsSet = false;
           }
           }
         }
         }
@@ -187,7 +186,7 @@
     ></div>
     ></div>
   </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>
 </div>
 `
 `
       );
       );
@@ -197,6 +196,8 @@
       ).style.width = widthPx + 'px';
       ).style.width = widthPx + 'px';
       document.getElementById('return-youtube-dislike-bar').style.width =
       document.getElementById('return-youtube-dislike-bar').style.width =
         widthPercent + '%';
         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",
   "name": "Youtube Dislike Button",
   "description": "Returns ability to see dislikes",
   "description": "Returns ability to see dislikes",
-  "version": "0.0.0.6",
+  "version": "0.0.0.7",
   "manifest_version": 2,
   "manifest_version": 2,
   "background": {
   "background": {
     "scripts": ["background.js"]
     "scripts": ["background.js"]

+ 4 - 1
Extensions/firefox/script.js

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

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


BIN
StaticSite/images/OnHower.JPG


BIN
StaticSite/images/chromeStore images/DislikeScreenshot.jpg


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


+ 79 - 13
StaticSite/index.html

@@ -58,17 +58,60 @@
           <h3 class="mt-4">
           <h3 class="mt-4">
             Chrome/Firefox/Usersript extension to return youtube dislike count
             Chrome/Firefox/Usersript extension to return youtube dislike count
           </h3>
           </h3>
-          <img src="images/aAGrY8L_700b.jpg" class="img-fluid" />
+          <img
+            src="images/aAGrY8L_700b.jpg"
+            class="img-fluid"
+            style="height: 520px"
+          />
 
 
           <p>
           <p>
             <strong
             <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>
+          <p>But, it's 0.0.0.1, and the latest version is 0.0.0.7</p>
           <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>
           </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>
           <p>
             This is a Chrome/Firefox/Userscript extension that return dislike
             This is a Chrome/Firefox/Userscript extension that return dislike
             statistics to YouTube. For now, it only works if a video had public
             statistics to YouTube. For now, it only works if a video had public
@@ -100,7 +143,8 @@
             before it was removed
             before it was removed
           </p>
           </p>
           <p>Like/dislike ratio bar is coming soon</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 />
           <hr />
 
 
@@ -115,6 +159,10 @@
               but coming to other platforms soon
               but coming to other platforms soon
             </p>
             </p>
             <h4>Chrome:</h4>
             <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>
             <p>
               <a href="files/chrome/return_youtube_dislike0.0.0.1.crx"
               <a href="files/chrome/return_youtube_dislike0.0.0.1.crx"
                 >v_0.0.0.1</a
                 >v_0.0.0.1</a
@@ -124,7 +172,7 @@
               <a href="files/chrome/return_youtube_dislike0.0.0.2.crx"
               <a href="files/chrome/return_youtube_dislike0.0.0.2.crx"
                 >v_0.0.0.2</a
                 >v_0.0.0.2</a
               >
               >
-              - Better number formatting added,
+              - Better number formatting added, thanks, <strong>bstka</strong>
             </p>
             </p>
             <p>
             <p>
               <a
               <a
@@ -143,14 +191,31 @@
               Chrome doesn't like .crx extensions. Install this following new
               Chrome doesn't like .crx extensions. Install this following new
               instructions.
               instructions.
             </p>
             </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>
             <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
             >. Check for updates often - this extension is being actively
             improved Latest version coming out as soon as update is approved by
             improved Latest version coming out as soon as update is approved by
             Mozilla
             Mozilla
@@ -215,7 +280,7 @@
           </section>
           </section>
           <hr />
           <hr />
           <section id="installation" class="pb-5">
           <section id="installation" class="pb-5">
-            <h2>Installation on chrome</h2>
+            <h2>Installation from unpacked files on chrome</h2>
             <p>
             <p>
               <strong
               <strong
                 >Before installing new version - please manually delete old
                 >Before installing new version - please manually delete old
@@ -311,7 +376,8 @@
             <br />
             <br />
             <br />
             <br />
             <h4>Discord server</h4>
             <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>
           </section>
           <hr />
           <hr />
           <section id="sources" class="pb-5">
           <section id="sources" class="pb-5">