Created
June 8, 2011 06:20
-
-
Save esperia/1013887 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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