From d8fdb458e8ee456009e7d2709311724281fcca83 Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Fri, 10 Jun 2016 19:23:30 +0200 Subject: [PATCH] Fixed the button appearing under other videos --- MLButton.user.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/MLButton.user.js b/MLButton.user.js index 4df3f24..2512b51 100644 --- a/MLButton.user.js +++ b/MLButton.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name MonsterLyrics button // @namespace https://github.com/NorbiPeti/ -// @version 0.8 +// @version 0.9 // @description Creates a button that searches for a lyrics video! // @author NorbiPeti // @match https://www.youtube.com/* @@ -14,6 +14,9 @@ window.lasttitle=""; 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"); if(title!==null) title=title.title;