diff --git a/couchpotato/core/plugins/userscript/template.js b/couchpotato/core/plugins/userscript/template.js index e200afb0..8b07272b 100644 --- a/couchpotato/core/plugins/userscript/template.js +++ b/couchpotato/core/plugins/userscript/template.js @@ -12,8 +12,7 @@ // ==/UserScript== -if (window.top != window.self) // Only run on top window - return; +if (window.top == window.self){ // Only run on top window var version = {{version}}, host = '{{host}}', @@ -135,4 +134,6 @@ var setVersion = function(){ if(document.location.href.indexOf(host) == -1) osd(); else - setVersion(); \ No newline at end of file + setVersion(); + +} \ No newline at end of file