mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-01 18:31:24 +01:00
removed "tip", added help button.
This commit is contained in:
1 parent
9d7c3b4869
commit
8ce9f7e712
3 files changed
+13
-38
No files matched your search
@@ -163,9 +163,3 @@ input:checked + .slider:before {
|
|||||||
/* filter: invert(21%) sepia(100%) saturate(3618%) hue-rotate(102deg)
|
/* filter: invert(21%) sepia(100%) saturate(3618%) hue-rotate(102deg)
|
||||||
brightness(96%) contrast(108%); */
|
brightness(96%) contrast(108%); */
|
||||||
}
|
}
|
||||||
|
|
||||||
#tips {
|
|
||||||
border: 3px dashed var(--tertiary);
|
|
||||||
border-radius: 4px;
|
|
||||||
padding: 0.4rem;
|
|
||||||
}
|
|
||||||
@@ -26,15 +26,13 @@
|
|||||||
<button id="link_website">Website</button>
|
<button id="link_website">Website</button>
|
||||||
<button id="link_github">GitHub</button>
|
<button id="link_github">GitHub</button>
|
||||||
<button id="link_discord">Discord</button>
|
<button id="link_discord">Discord</button>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<button style="margin-top: 0.3rem" id="link_faq">FAQ</button>
|
<button style="margin-top: 0.3rem" id="link_faq">FAQ</button>
|
||||||
<button style="margin-top: 0.3em" id="link_donate">Donate</button>
|
<button style="margin-top: 0.3em" id="link_donate">Donate</button>
|
||||||
|
<button style="margin-top: 0.3em" id="link_help">Help</button>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<br />
|
<br />
|
||||||
<div style=" margin: 0rem 2rem 0rem 2rem; color: var(--lightGrey);" id="tips"></div>
|
|
||||||
<p style="display: none">API Status: <b id="status"></b></p>
|
<p style="display: none">API Status: <b id="status"></b></p>
|
||||||
<img
|
<img
|
||||||
id="server-status"
|
id="server-status"
|
||||||
|
|||||||
@@ -12,36 +12,24 @@ const config = {
|
|||||||
discord: "https://discord.gg/mYnESY4Md5",
|
discord: "https://discord.gg/mYnESY4Md5",
|
||||||
donate: "https://returnyoutubedislike.com/donate",
|
donate: "https://returnyoutubedislike.com/donate",
|
||||||
faq: "https://returnyoutubedislike.com/faq",
|
faq: "https://returnyoutubedislike.com/faq",
|
||||||
|
help: "https://returnyoutubedislike.com/help"
|
||||||
},
|
},
|
||||||
tips: [
|
|
||||||
'If you have stopped seeing the dislike count, try disabling and re-enabling the plugin.'
|
|
||||||
]
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Tips */
|
|
||||||
renderTip();
|
|
||||||
|
|
||||||
/* Links */
|
/* Links */
|
||||||
document.getElementById("link_website").addEventListener("click", () => {
|
createLink(config.links.website,"link_website")
|
||||||
chrome.tabs.create({ url: config.links.website });
|
createLink(config.links.github,"link_github")
|
||||||
});
|
createLink(config.links.discord,"link_discord")
|
||||||
|
createLink(config.links.faq,"link_faq")
|
||||||
document.getElementById("link_github").addEventListener("click", () => {
|
createLink(config.links.donate,"link_donate")
|
||||||
chrome.tabs.create({ url: config.links.github });
|
createLink(config.links.help,"link_help")
|
||||||
});
|
|
||||||
|
|
||||||
document.getElementById("link_discord").addEventListener("click", () => {
|
|
||||||
chrome.tabs.create({ url: config.links.discord });
|
|
||||||
});
|
|
||||||
|
|
||||||
document.getElementById("link_faq").addEventListener("click", () => {
|
|
||||||
chrome.tabs.create({ url: config.links.faq });
|
|
||||||
});
|
|
||||||
|
|
||||||
document.getElementById("link_donate").addEventListener("click", () => {
|
|
||||||
chrome.tabs.create({ url: config.links.donate });
|
|
||||||
});
|
|
||||||
|
|
||||||
|
function createLink(url,id) {
|
||||||
|
document.getElementById(id).addEventListener("click",()=>{
|
||||||
|
chrome.tabs.create({ url: url})
|
||||||
|
})
|
||||||
|
}
|
||||||
document
|
document
|
||||||
.getElementById("disable_vote_submission")
|
.getElementById("disable_vote_submission")
|
||||||
.addEventListener("click", (ev) => {
|
.addEventListener("click", (ev) => {
|
||||||
@@ -121,11 +109,6 @@ function handleDisableVoteSubmissionChangeEvent(value) {
|
|||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
||||||
function renderTip(){
|
|
||||||
document.getElementById('tips').innerText = config.tips[Math.floor(Math.random()*config.tips.length)];
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/* popup-script.js
|
/* popup-script.js
|
||||||
document.querySelector('#login')
|
document.querySelector('#login')
|
||||||
.addEventListener('click', function () {
|
.addEventListener('click', function () {
|
||||||
|
|||||||
Reference in new issue
Block a user