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
| // ==UserScript== | |
| // @name Download All Images (ZIP) | |
| // @name:zh-CN 打包下载页面全部图片 | |
| // @namespace stay-for-safari | |
| // @version 2.0.0 | |
| // @description Floating button to pack all <img> images into one ZIP download | |
| // @description:zh-CN 在页面添加浮动按钮,将当前页所有 <img> 打包成一个 ZIP 下载 | |
| // @author local | |
| // @match *://*/* | |
| // @run-at document-idle |
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
| #siri start | |
| # === Siri & Dictation 核心接口 === | |
| DOMAIN-SUFFIX,guzzoni.apple.com,兜底后备 | |
| DOMAIN-SUFFIX,smoot.apple.com,兜底后备 | |
| DOMAIN-SUFFIX,siri.apple.com,兜底后备 | |
| DOMAIN-SUFFIX,api-siri-prod.apple.com,兜底后备 | |
| DOMAIN-SUFFIX,seed-siri-apple-com.v.aaplimg.com,兜底后备 | |
| DOMAIN-SUFFIX,nlp.apple.com,兜底后备 | |
| DOMAIN-SUFFIX,prod.dss.apple.com,兜底后备 |
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
| interface NetConfigStep { | |
| /* 配网引导内容 */ | |
| content: { | |
| [key: string]: string | |
| } | |
| /* 文件地址URL */ | |
| file_url: string | |
| id?: number | |
| /* 配网类型,支持 BLE、AP、EZ、ZB、ZBN */ |
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
| function strToUtf8Bytes(str = '') { | |
| const utf8: number[] = []; | |
| for (let i = 0; i < str.length; i++) { | |
| let charCode = str.charCodeAt(i); | |
| if (charCode < 0x80) utf8.push(charCode); | |
| else if (charCode < 0x800) { | |
| utf8.push(0xc0 | (charCode >> 6), 0x80 | (charCode & 0x3f)); | |
| } else if (charCode < 0xd800 || charCode >= 0xe000) { | |
| utf8.push(0xe0 | (charCode >> 12), 0x80 | ((charCode >> 6) & 0x3f), 0x80 | (charCode & 0x3f)); | |
| } else { |
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
| public static byte[] encrypt(byte[] plain, String key) throws Exception { | |
| if (plain == null) { | |
| throw new Exception("plain cannot be null"); | |
| } | |
| if (key == null) { | |
| throw new Exception("key cannot be null"); | |
| } | |