From cbac0cbcd705c14429547c907ed064e3373f57ca Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 17 May 2015 17:50:11 +0200 Subject: [PATCH] Ignore scripts --- couchpotato/core/plugins/userscript/static/userscript.js | 2 ++ couchpotato/static/scripts/couchpotato.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/couchpotato/core/plugins/userscript/static/userscript.js b/couchpotato/core/plugins/userscript/static/userscript.js index 31ecb59..b1e944b 100644 --- a/couchpotato/core/plugins/userscript/static/userscript.js +++ b/couchpotato/core/plugins/userscript/static/userscript.js @@ -80,10 +80,12 @@ var UserscriptSettingTab = new Class({ new Element('span.bookmarklet').adopt( new Element('a.button.green', { 'text': '+CouchPotato', + /* jshint ignore:start */ 'href': "javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','" + host_url + Api.createUrl('userscript.bookmark') + "?host="+ encodeURI(host_url + Api.createUrl('userscript.get')+randomString()+'/') + "&r='+Math.random()*99999999);document.body.appendChild(e)})());", + /* jshint ignore:end */ 'target': '', 'events': { 'click': function(e){ diff --git a/couchpotato/static/scripts/couchpotato.js b/couchpotato/static/scripts/couchpotato.js index 0d80010..d34d14b 100644 --- a/couchpotato/static/scripts/couchpotato.js +++ b/couchpotato/static/scripts/couchpotato.js @@ -361,10 +361,12 @@ new Element('span.bookmarklet').adopt( new Element('a.button.orange', { 'text': '+CouchPotato', + /* jshint ignore:start */ 'href': "javascript:void((function(){var e=document.createElement('script');e.setAttribute('type','text/javascript');e.setAttribute('charset','UTF-8');e.setAttribute('src','" + host_url + Api.createUrl('userscript.bookmark') + "?host="+ encodeURI(host_url + Api.createUrl('userscript.get')+randomString()+'/') + "&r='+Math.random()*99999999);document.body.appendChild(e)})());", + /* jshint ignore:end */ 'target': '', 'events': { 'click': function(e){