Browse Source

Ignore scripts

pull/5180/head
Ruud 10 years ago
parent
commit
cbac0cbcd7
  1. 2
      couchpotato/core/plugins/userscript/static/userscript.js
  2. 2
      couchpotato/static/scripts/couchpotato.js

2
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){

2
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){

Loading…
Cancel
Save