Fixed the button appearing under other videos
This commit is contained in:
parent
c2c31a5ddf
commit
d8fdb458e8
1 changed files with 4 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name MonsterLyrics button
|
// @name MonsterLyrics button
|
||||||
// @namespace https://github.com/NorbiPeti/
|
// @namespace https://github.com/NorbiPeti/
|
||||||
// @version 0.8
|
// @version 0.9
|
||||||
// @description Creates a button that searches for a lyrics video!
|
// @description Creates a button that searches for a lyrics video!
|
||||||
// @author NorbiPeti
|
// @author NorbiPeti
|
||||||
// @match https://www.youtube.com/*
|
// @match https://www.youtube.com/*
|
||||||
|
@ -14,6 +14,9 @@
|
||||||
window.lasttitle="";
|
window.lasttitle="";
|
||||||
|
|
||||||
function AddYouTube(addtries) {
|
function AddYouTube(addtries) {
|
||||||
|
var namecont=document.getElementById("watch7-user-header");
|
||||||
|
if(namecont===null || namecont.innerHTML.indexOf("Monstercat")==-1)
|
||||||
|
return;
|
||||||
var title=document.getElementById("eow-title");
|
var title=document.getElementById("eow-title");
|
||||||
if(title!==null)
|
if(title!==null)
|
||||||
title=title.title;
|
title=title.title;
|
||||||
|
|
Loading…
Reference in a new issue