添加前,网页代码如下: 添加代码 let jsStr = """ function echo(str) {console.log(str);window.webkit.messageHandlers.testecho.postMessage("str");} """ let userScript = WKUserScript.init(source: jsStr, inje...            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2021-05-30 21:41:11
                            
                                337阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            ## UserScript 引入外部jquery
作为一名经验丰富的开发者,你可能会经常碰到需要使用 UserScript 引入外部 jQuery 的情况。在这篇文章中,我将向你展示如何实现这一功能,并提供详细的步骤和代码。
### 流程概述
下面是实现 UserScript 引入外部 jQuery 的步骤概述:
| 步骤 | 描述 |
|------|------|
| 1.   | 创            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2023-09-27 00:45:21
                            
                                112阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            【简介调试工具】pdb使用如下代码就相当于添加断点了:import pdb    pdb.set_trace()  #设置断点的地方,放置于程序中ipdb相对于python,我们更趋向于ipython,有漂亮的颜色,和<tab>补全提示,以及bash混用;相对于python内置的pdb,ipdb的优势也正在于此,其实就是对ipython的调用:i            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2024-05-20 06:16:14
                            
                                75阅读
                            
                                                                             
                 
                
                                
                     
                                    
                             
         
            
            
            
            // ==UserScript==
// @name         骚扰拦截
// @version      1.3.21
// @namespace    airbash/AnnoyancesInterception
// @homepage     https://github.com/AirBashX/UserScript
// @author       airbash
// @des            
                
         
            
            
            
            // ==UserScript==// @name jsKillAD// @namespace jsKillAD// @include http://*// @include https://*// @grant none// @version 1// ==/UserScript==(function () {	var bc = Array.prototype.forEach;//C            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2013-06-15 15:29:00
                            
                                264阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            //==UserScript==//@name4399login//@includehttp://my.4399.com*//@version1//@grantnone//==/UserScript==window.onload=function(){varloginform=document.getElementsByClassName('my_unlogin')[0].firstChild;i            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2018-12-20 17:46:14
                            
                                1039阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            Greasemetal is a userscript runtime for Google Chrome.            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2009-04-01 14:29:00
                            
                                237阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            idea插件.ignore :git ignoretranslation:翻译lombok:lombok 插件grep console :日志高亮gitee:码云git代码管理油猴插件Userscript+: https://greasyfork.org/zh-CN/scripts/24508-userscript-show-site-all-userjsAC-baidu:重...            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2021-09-01 16:31:21
                            
                                294阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            linkoldnew// ==UserScript==// @name         baidu fanyi radius and shadow//            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2023-02-13 20:20:39
                            
                                270阅读
                            
                                                                             
                 
                
                                
                     
                                    
                             
         
            
            
            
            newoldlink// ==UserScript==// @name         Add nice rounded corners and shad            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2023-02-13 20:20:48
                            
                                92阅读
                            
                                                                             
                 
                
                                
                     
                                    
                             
         
            
            
            
            跳转格式 http://www.dicts.cn/?w=blight 20230605 更新 ``` // ==UserScript== //            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2023-06-10 06:37:51
                            
                                145阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            // ==UserScript== // @name 双击页面嵌入leftRight // @namespace Violentmonkey Scripts // @match https://*/* // @exclude ht            
                
         
            
            
            
            // ==UserScript== // @name Hook worker // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author Y            
                
         
            
            
            
            // ==UserScript== // @name xhr_setRequestHeader // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! //            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2023-06-10 00:54:40
                            
                                149阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            // ==UserScript== // @name test // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You //注意 ...            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2021-07-15 16:26:00
                            
                                3223阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            // ==UserScript== // @name Hook global // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author 悦            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2021-06-28 09:22:07
                            
                                585阅读
                            
                                                                             
                 
                
                             
         
            
            
            
            // ==UserScript== // @name 音频地址替换 // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You //            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2020-12-29 22:17:00
                            
                                325阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            在下面 添加 L2Dwidget后续添加可切换人物按钮和显示推荐// ==UserScript==// @nam            
                
                    
                        
                                                            
                                                                        
                                                                                        原创
                                                                                    
                            2023-02-13 20:20:55
                            
                                132阅读
                            
                                                                             
                 
                
                                
                     
                                    
                             
         
            
            
            
            1 // ==UserScript== 2 // @name JSHE_ModifyFunction 3 // @namespace jshe 4 // @include http://localhost/* 5 // @version 1 6 // @grant...            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2014-12-01 00:11:00
                            
                                299阅读
                            
                                                                                    
                                2评论
                            
                                                 
                 
                
                             
         
            
            
            
            1 // ==UserScript== 2 // @name carAuto 3 // @namespace http://tampermonkey.net/ 4 // @version 0.1 5 // @description try to take over the world! 6 // @ ...            
                
                    
                        
                                                            
                                                                        
                                                                                        转载
                                                                                    
                            2021-09-20 14:54:00
                            
                                1452阅读
                            
                                                        
                                点赞
                            
                                                                                    
                                2评论