Created
June 3, 2010 11:29
-
-
Save littlefolk/423772 to your computer and use it in GitHub Desktop.
vimperator plugin patch: Rev:3dcf131441で、ldrize_cooperation.jsが起動時に有効にならない問題への対処
This file contains hidden or 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_cooperation.js b/ldrize_cooperation.js | |
| index b33c58f..a08c68e 100644 | |
| --- a/ldrize_cooperation.js | |
| +++ b/ldrize_cooperation.js | |
| @@ -133,14 +133,14 @@ if (liberator.plugins.LDRizeCooperation == undefined) (function(){ | |
| this.LDRizeCooperationPanel = this.setupStatusbarPanel(); | |
| this.isEnable = liberator.globalVariables.ldrc_enable != undefined ? | |
| - window.eval(liberator.globalVariables.ldrc_enable) : true ; | |
| + liberator.eval(liberator.globalVariables.ldrc_enable) : true ; | |
| this.isIntelligenceBind = liberator.globalVariables.ldrc_intelligence_bind != undefined ? | |
| - window.eval(liberator.globalVariables.ldrc_intelligence_bind) : false ; | |
| + liberator.eval(liberator.globalVariables.ldrc_intelligence_bind) : false ; | |
| this.isModHints = liberator.globalVariables.ldrc_hints != undefined ? | |
| - window.eval(liberator.globalVariables.ldrc_hints) : false ; | |
| - this.captureMappings = window.eval(liberator.globalVariables.ldrc_captureMappings) || ["j","k","p","o"]; | |
| + liberator.eval(liberator.globalVariables.ldrc_hints) : false ; | |
| + this.captureMappings = liberator.eval(liberator.globalVariables.ldrc_captureMappings) || ["j","k","p","o"]; | |
| this.skipHeight = liberator.globalVariables.ldrc_skip != undefined ? | |
| - window.eval(liberator.globalVariables.ldrc_skip) : 0.5 ; | |
| + liberator.eval(liberator.globalVariables.ldrc_skip) : 0.5 ; | |
| this.convertHandlerInfo(this.handlerInfo); | |
| this.hookGreasemonkey(); | |
| @@ -275,15 +275,15 @@ if (liberator.plugins.LDRizeCooperation == undefined) (function(){ | |
| liberator.modules.commands.addUserCommand(["toggleldrizecooperation","toggleldrc"],"Toggle LDRize Cooperation", | |
| function(arg){ self.isEnable = !self.isEnable},{}); | |
| //Options | |
| - liberator.modules.options.add(["ldrc","ldrizecooperation"],"LDRize cooperation","boolean",this.isEnable, | |
| + liberator.modules.options.add(["ldrc","ldrizecooperation"],"LDRize cooperation","boolean",this.isEnable.toString(), | |
| { | |
| - setter: function(value){ self.isEnable = value; }, | |
| + setter: function(value) self.isModHints = value, | |
| getter: function() self.isEnable | |
| } | |
| ); | |
| - liberator.modules.options.add(["ldrchints"],"mod hinttags for LDRize","boolean",this.isModHints, | |
| + liberator.modules.options.add(["ldrchints"],"mod hinttags for LDRize","boolean",this.isModHints.toString(), | |
| { | |
| - setter: function(value){ self.isModHints = value; }, | |
| + setter: function(value) self.isModHints = value, | |
| getter: function() self.isModHints | |
| } | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment