Remove userscript detection
This commit is contained in:
@@ -285,23 +285,15 @@ var CouchPotato = new Class({
|
||||
|
||||
createUserscriptButtons: function(){
|
||||
|
||||
var userscript = false;
|
||||
try {
|
||||
if(Components.interfaces.gmIGreasemonkeyService)
|
||||
userscript = true
|
||||
}
|
||||
catch(e){
|
||||
userscript = Browser.chrome === true;
|
||||
}
|
||||
|
||||
var host_url = window.location.protocol + '//' + window.location.host;
|
||||
|
||||
return new Element('div.group_userscript').adopt(
|
||||
(userscript ? [new Element('a.userscript.button', {
|
||||
new Element('a.userscript.button', {
|
||||
'text': 'Install userscript',
|
||||
'href': Api.createUrl('userscript.get')+randomString()+'/couchpotato.user.js',
|
||||
'target': '_self'
|
||||
}), new Element('span.or[text=or]')] : null),
|
||||
'target': '_blank'
|
||||
}),
|
||||
new Element('span.or[text=or]'),
|
||||
new Element('span.bookmarklet').adopt(
|
||||
new Element('a.button.orange', {
|
||||
'text': '+CouchPotato',
|
||||
|
||||
Reference in New Issue
Block a user