mirror of
https://github.com/tubearchivist/browser-extension.git
synced 2024-11-22 19:50:12 +00:00
fix /watch mouseover dl link
This commit is contained in:
parent
a0e4a10f1f
commit
4f0452cf5f
@ -165,8 +165,14 @@ function buildDlLink(channelContainer) {
|
|||||||
sendUrl(currentLocation, "download");
|
sendUrl(currentLocation, "download");
|
||||||
});
|
});
|
||||||
dlLink.addEventListener("mouseover", e => {
|
dlLink.addEventListener("mouseover", e => {
|
||||||
let channelName = channelContainer.querySelector("#text").textContent;
|
let subText
|
||||||
e.target.title = "TA Download: " + channelName;
|
if (window.location.pathname == "/watch") {
|
||||||
|
subText = window.location.href;
|
||||||
|
} else {
|
||||||
|
subText = channelContainer.querySelector("#text").textContent;
|
||||||
|
};
|
||||||
|
|
||||||
|
e.target.title = "TA Download: " + subText;
|
||||||
});
|
});
|
||||||
Object.assign(dlLink.style, {
|
Object.assign(dlLink.style, {
|
||||||
filter: "invert()",
|
filter: "invert()",
|
||||||
|
Loading…
Reference in New Issue
Block a user