Skip to content

Instantly share code, notes, and snippets.

@t-f-m
Created June 10, 2012 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save t-f-m/2906776 to your computer and use it in GitHub Desktop.
Save t-f-m/2906776 to your computer and use it in GitHub Desktop.
LDRizeをFirefox13で動かす
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