| console.log("脚本加载成功"); |
| function main(){ |
| Java.perform(function(){ |
| var WebView = Java.use('android.webkit.WebView'); |
| WebView.$init.overload('android.content.Context').implementation = function(a){ |
| var result = this.$init(a); |
| this.setWebContentsDebuggingEnabled(true); |
| return result; |
| } |
| WebView.$init.overload('android.content.Context', 'android.util.AttributeSet').implementation = function(a,b){ |
| var result = this.$init(a,b); |
| this.setWebContentsDebuggingEnabled(true); |
| return result; |
| } |
| WebView.$init.overload('android.content.Context', 'android.util.AttributeSet', 'int').implementation = function(a,b,c){ |
| var result = this.$init(a,b,c); |
| this.setWebContentsDebuggingEnabled(true); |
| return result; |
| } |
| WebView.$init.overload('android.content.Context', 'android.util.AttributeSet', 'int', 'int').implementation = function(a,b,c,d){ |
| var result = this.$init(a,b,c,d); |
| this.setWebContentsDebuggingEnabled(true); |
| return result; |
| } |
| WebView.$init.overload('android.content.Context', 'android.util.AttributeSet', 'int', 'boolean').implementation = function(a,b,c,d){ |
| var result = this.$init(a,b,c,d); |
| this.setWebContentsDebuggingEnabled(true); |
| return result; |
| } |
| WebView.$init.overload('android.content.Context', 'android.util.AttributeSet', 'int', 'java.util.Map', 'boolean').implementation = function(a,b,c,d,e){ |
| var result = this.$init(a,b,c,d,e); |
| this.setWebContentsDebuggingEnabled(true); |
| return result; |
| } |
| WebView.$init.overload('android.content.Context', 'android.util.AttributeSet', 'int', 'int', 'java.util.Map', 'boolean').implementation = function(a,b,c,d,e,f){ |
| var result = this.$init(a,b,c,d,e,f); |
| this.setWebContentsDebuggingEnabled(true); |
| return result; |
| } |
| }); |
| } |
| setImmediate(main); |