mirror of
https://github.com/NohamR/BetterYGG.git
synced 2026-01-11 00:48:12 +00:00
Improve UI and functionality for options and scripts
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
var downloadButton = document.querySelector('a.butt');
|
||||
downloadButton.onclick = function () {};
|
||||
downloadButton.removeAttribute('onclick');
|
||||
if (downloadButton) {
|
||||
downloadButton.onclick = function() { window.location.href = this.href; };
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ downloadLine.insertAdjacentElement('afterend', torrentInfo);
|
||||
|
||||
/* Add third party download button */
|
||||
var downloadButton = downloadLine.querySelector('a.butt');
|
||||
downloadButton.removeAttribute('id'); // remove "download-timer-btn"
|
||||
var flexButton = document.createElement('a');
|
||||
flexButton.appendChild(document.createTextNode('Télécharger via discord '));
|
||||
var span = document.createElement('span');
|
||||
|
||||
Reference in New Issue
Block a user