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
[ | |
{ | |
"matches": [ | |
"www.nexusmods.com", | |
"next.nexusmods.com" | |
], | |
"selectors": [ | |
"[class=\"tile-name\"]", | |
"[class=\"container mod_description_container condensed \"]", | |
"[class=\"comment-content-text\"]", |
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
// 检查响应状态码是否是 302 | |
if ($response.status === 302) { | |
// 获取 Location 重定向的 URL | |
let locationUrl = $response.headers['Location']; | |
locationUrl =decodeURIComponent(escape(locationUrl)); | |
const jsonResult = {"url": locationUrl}; | |
$done({ |
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
// author: 叙白 | |
// date: 2025-01-18 | |
// name: BigModelTranslator.js | |
// 注意:请在脚本中的变量功能中添加 bigmodel_key 变量,值为 BigModel 的 API Key | |
const BASE_URL = "https://open.bigmodel.cn/api/paas/v4/chat/completions"; | |
const DEFAULT_MODEL = "glm-4-flash"; | |
const DEFAULT_TEMPERATURE = 0.1; | |
/** |