Skip to content

Instantly share code, notes, and snippets.

@esperia
Created June 8, 2011 06:20
Show Gist options
  • Save esperia/1013887 to your computer and use it in GitHub Desktop.
Save esperia/1013887 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name test
// @author esperia
// @namespace http://d.hatena.ne.jp/esperia/
// @description test only
// @include http://localhost:8080/
// @version 0.01
// ==/UserScript==
//
if(typeof GM_setValue == 'function') {
try {
if(GM_getValue.toString().indexOf("not supported") > -1) {
alert('Chrome');
} else {
alert('Fx3.6とか');
}
} catch(e) {
alert('Fx4');
}
} else {
alert('Operaとか');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment