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