Created
June 10, 2012 18:02
-
-
Save t-f-m/2906776 to your computer and use it in GitHub Desktop.
LDRizeをFirefox13で動かす
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
diff --git a/LDRize.user.js b/LDRize_mod.user.js | |
index 128fa25..ae7cabd 100644 | |
--- a/LDRize.user.js | |
+++ b/LDRize_mod.user.js | |
@@ -7,7 +7,7 @@ | |
// @include file:///* | |
// ==/UserScript== | |
-const SCRIPT_VERSION = "2011.11.11" //sharedObject | |
+const SCRIPT_VERSION = "2012.06.10" //sharedObject and RegExp | |
const SCRIPT_URL = "http://userscripts.org/scripts/show/11562" | |
// ------------------------------------------------------------------ | |
@@ -989,7 +989,7 @@ Siteinfo.prototype = { | |
$X(this.paragraph).length){ | |
return true; | |
} | |
- if( this.domain.length && location.href.match(this.domain) && (this.disable || $X(this.paragraph).length)){ | |
+ if( this.domain.length && location.href.match(new RegExp(this.domain)) && (this.disable || $X(this.paragraph).length)){ | |
if(this.disable) throw 0; | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment