mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2024-11-22 11:40:13 +00:00
add link text to title for channel dl button
This commit is contained in:
parent
55ef05cc2a
commit
9d75b13886
@ -167,11 +167,11 @@ function buildDlLink(channelContainer) {
|
|||||||
});
|
});
|
||||||
dlLink.addEventListener('mouseover', e => {
|
dlLink.addEventListener('mouseover', e => {
|
||||||
let subText;
|
let subText;
|
||||||
|
let currentLocation = window.location.href;
|
||||||
if (window.location.pathname === '/watch') {
|
if (window.location.pathname === '/watch') {
|
||||||
let currentLocation = window.location.href;
|
|
||||||
subText = currentLocation;
|
subText = currentLocation;
|
||||||
} else {
|
} else {
|
||||||
subText = channelContainer.querySelector('#text').textContent;
|
subText = channelContainer.querySelector('#text').textContent + " " + currentLocation;
|
||||||
}
|
}
|
||||||
|
|
||||||
e.target.title = 'TA Download: ' + subText;
|
e.target.title = 'TA Download: ' + subText;
|
||||||
@ -373,8 +373,8 @@ function sendUrl(url, action, button) {
|
|||||||
|
|
||||||
console.log('youtube link: ' + JSON.stringify(payload));
|
console.log('youtube link: ' + JSON.stringify(payload));
|
||||||
|
|
||||||
let sending = browserType.runtime.sendMessage(payload);
|
// let sending = browserType.runtime.sendMessage(payload);
|
||||||
sending.then(handleResponse, handleError);
|
// sending.then(handleResponse, handleError);
|
||||||
}
|
}
|
||||||
|
|
||||||
let throttleBlock;
|
let throttleBlock;
|
||||||
|
Loading…
Reference in New Issue
Block a user