LDRize の domain のところ
http://coderepos.org/share/browser/lang/javascript/userscripts/ldrize.user.js?rev=28790
1013 //// Siteinfo 1014 var Siteinfo = new Class(); 1015 Siteinfo.prototype = { 1016 initialize: function(){ 1017 // ['name', 'domain', 'paragraph', 'link', 'view', 'stripe', 'height', 'focus', 'disable'] 1018 Object.extend(this, arguments[0]); 1019 }, 1020 isAvailable: function(){ 1021 try{ 1022 if((this.domain == true || this.domain == 'microformats') && 1023 $X(this.paragraph).length){ 1024 return true; 1025 }else if(location.href.match(this.domain) && (this.disable || $X(this.paragraph).length)){ 1026 if(this.disable) throw 0; 1027 return true; 1028 }else if($X(this.domain).length && (this.disable || $X(this.paragraph).length)){ 1029 if(this.disable) throw 0; 1030 return true; 1031 } 1032 }catch(e){ 1033 // log(['errer', info]); 1034 if(e==0) throw 0; 1035 } 1036 return false; 1037 }, 1038 }