add link text to title for channel dl button

This commit is contained in:
simon 2023-01-12 23:35:51 +07:00
parent 55ef05cc2a
commit 9d75b13886
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -167,11 +167,11 @@ function buildDlLink(channelContainer) {
});
dlLink.addEventListener('mouseover', e => {
let subText;
let currentLocation = window.location.href;
if (window.location.pathname === '/watch') {
let currentLocation = window.location.href;
subText = currentLocation;
} else {
subText = channelContainer.querySelector('#text').textContent;
subText = channelContainer.querySelector('#text').textContent + " " + currentLocation;
}
e.target.title = 'TA Download: ' + subText;
@ -373,8 +373,8 @@ function sendUrl(url, action, button) {
console.log('youtube link: ' + JSON.stringify(payload));
let sending = browserType.runtime.sendMessage(payload);
sending.then(handleResponse, handleError);
// let sending = browserType.runtime.sendMessage(payload);
// sending.then(handleResponse, handleError);
}
let throttleBlock;