mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-12-01 18:31:24 +01:00
Added tips(resolves issue 388)
This commit is contained in:
1 parent
e77cdeb2ed
commit
9d7c3b4869
3 files changed
+27
-7
No files matched your search
@@ -13,8 +13,14 @@ const config = {
|
||||
donate: "https://returnyoutubedislike.com/donate",
|
||||
faq: "https://returnyoutubedislike.com/faq",
|
||||
},
|
||||
tips: [
|
||||
'If you have stopped seeing the dislike count, try disabling and re-enabling the plugin.'
|
||||
]
|
||||
};
|
||||
|
||||
/* Tips */
|
||||
renderTip();
|
||||
|
||||
/* Links */
|
||||
document.getElementById("link_website").addEventListener("click", () => {
|
||||
chrome.tabs.create({ url: config.links.website });
|
||||
@@ -114,6 +120,12 @@ function handleDisableVoteSubmissionChangeEvent(value) {
|
||||
}
|
||||
})();
|
||||
|
||||
|
||||
function renderTip(){
|
||||
document.getElementById('tips').innerText = config.tips[Math.floor(Math.random()*config.tips.length)];
|
||||
|
||||
}
|
||||
|
||||
/* popup-script.js
|
||||
document.querySelector('#login')
|
||||
.addEventListener('click', function () {
|
||||
|
||||
Reference in new issue
Block a user