mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-03 03:11:23 +01:00
Formatting, static site style
This commit is contained in:
1 parent
6b96a70876
commit
1027f43503
2 files changed
+20
-10
No files matched your search
@@ -67,14 +67,16 @@ function setState() {
|
|||||||
GM_xmlhttpRequest({
|
GM_xmlhttpRequest({
|
||||||
method: "GET",
|
method: "GET",
|
||||||
responseType: "json",
|
responseType: "json",
|
||||||
url: "https://return-youtube-dislike-api.azurewebsites.net/votes?videoId=" + getVideoId(),
|
url:
|
||||||
|
"https://return-youtube-dislike-api.azurewebsites.net/votes?videoId=" +
|
||||||
|
getVideoId(),
|
||||||
onload: function (response) {
|
onload: function (response) {
|
||||||
if (response != undefined) {
|
if (response != undefined) {
|
||||||
const formattedDislike = numberFormat(response.response.dislikes);
|
const formattedDislike = numberFormat(response.response.dislikes);
|
||||||
console.log(response);
|
console.log(response);
|
||||||
setDislikes(formattedDislike);
|
setDislikes(formattedDislike);
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,7 +133,7 @@ function setEventListeners(evt) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
"use strict";
|
||||||
window.addEventListener("yt-navigate-finish", setEventListeners, true);
|
window.addEventListener("yt-navigate-finish", setEventListeners, true);
|
||||||
setEventListeners();
|
setEventListeners();
|
||||||
})();
|
})();
|
||||||
+15
-7
@@ -12,11 +12,12 @@
|
|||||||
<title>Return youtube dislike count</title>
|
<title>Return youtube dislike count</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
|
||||||
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
<nav class="navbar navbar-expand-lg navbar-light bg-light">
|
||||||
<div class="container-fluid">
|
<div class="container-xxl">
|
||||||
<a class="navbar-brand" href="/">Return youtube dislike count</a>
|
<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">
|
<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>
|
<span class="navbar-toggler-icon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="collapse navbar-collapse" id="navbarNav">
|
<div class="collapse navbar-collapse" id="navbarNav">
|
||||||
@@ -40,6 +41,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
|
<div class="container">
|
||||||
<div class="row justify-content-center">
|
<div class="row justify-content-center">
|
||||||
<div class="col-lg-8 col-md-10 col-sm-12">
|
<div class="col-lg-8 col-md-10 col-sm-12">
|
||||||
<h3 class="mt-4">Chrome/Firefox/Usersript extension to return youtube dislike count</h3>
|
<h3 class="mt-4">Chrome/Firefox/Usersript extension to return youtube dislike count</h3>
|
||||||
@@ -90,7 +93,8 @@
|
|||||||
|
|
||||||
<h4>Firefox:</h4>
|
<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>.
|
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
|
Check for updates often - this extension is being actively improved
|
||||||
Latest version coming out as soon as update is approved by Mozilla
|
Latest version coming out as soon as update is approved by Mozilla
|
||||||
|
|
||||||
@@ -108,12 +112,15 @@
|
|||||||
<div class="accordion-body">
|
<div class="accordion-body">
|
||||||
<div class="card card-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> 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>
|
||||||
<p>
|
<p>
|
||||||
<a href="files/ff/youtube_dislike_button-0.0.0.1-fx.xpi">v_0.0.0.1</a>
|
<a href="files/ff/youtube_dislike_button-0.0.0.1-fx.xpi">v_0.0.0.1</a>
|
||||||
</p>
|
</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
|
<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>
|
thanks, <strong>bstka</strong>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -134,7 +141,8 @@
|
|||||||
<h2>Installation on chrome</h2>
|
<h2>Installation on chrome</h2>
|
||||||
<p></p><strong>Before installing new version - please manually delete old version</strong></p>
|
<p></p><strong>Before installing new version - please manually delete old version</strong></p>
|
||||||
<p></p><strong>Chrome might disable this extension - you'll need to delete it and reinstall. </strong>
|
<p></p><strong>Chrome might disable this extension - you'll need to delete it and reinstall. </strong>
|
||||||
This is a temporary problem while awaiting chrome store approval. You might use userscript or firefox extension meanwhile.</p>
|
This is a temporary problem while awaiting chrome store approval. You might use userscript or firefox extension
|
||||||
|
meanwhile.</p>
|
||||||
|
|
||||||
|
|
||||||
<p> Installation is described for Chrome. For firefox extension is available in store</p>
|
<p> Installation is described for Chrome. For firefox extension is available in store</p>
|
||||||
|
|||||||
Reference in new issue
Block a user