Skip to content

Instantly share code, notes, and snippets.

View nulIptr's full-sized avatar

nulIptr nulIptr

View GitHub Profile
// ==UserScript==
// @name nHentai 标签翻译
// @namespace http://tampermonkey.net/
// @version 2024-03-11
// @description nHentai 标签翻译,标签数据来源于https://github.com/EhTagTranslation/Database
// @license MIT
// @author nuliptr
// @match https://nhentai.net/g/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=nhentai.net
// @grant GM_xmlhttpRequest
type StringOnly<T> = { [K in keyof T as T[K] extends string ? K : never]: T[K] };
function useTable<T extends { name: string }>(
records: T[]
) {
return useTableWithCustomKey(records,'name');
}
function useTableForName(records: { name: string }[]) {
return useTableWithCustomKey(records,'name');
}
// ==UserScript==
// @name NGA优化摸鱼体验
// @namespace https://github.com/kisshang1993/NGA-BBS-Script
// @version 3.9.5
// @author HLD
// @description NGA论坛显示优化,功能增强,防止突然蹦出一对??而导致的突然性的社会死亡
// @license MIT
// @require https://cdn.staticfile.org/jquery/3.4.0/jquery.min.js
// @require https://cdn.staticfile.org/spectrum/1.8.0/spectrum.js
// @require https://greasyfork.org/scripts/424901-nga-script-resource/code/NGA-Script-Resource.js?version=926265
@nulIptr
nulIptr / XiaoiceTesterWithMultiTables_cq.EXCEL.yaml
Created August 4, 2021 02:54
Run a workflow api test then write the response back to excel table
name: XiaoiceTesterWithMultiTables_cq
description: Run a workflow api test then write the response back to excel table
host: EXCEL
api_set: {}
script:
content: >
var PARTNERS = {};
const CustomUrl =
@nulIptr
nulIptr / OpenApiV3 with metadata.EXCEL.yaml
Last active August 21, 2021 13:29
Run a Openapi V3 query test for new partner
name: OpenApiV3 with metadata
description: 'Run a Openapi V3 query test for new partner '
host: EXCEL
api_set: {}
script:
content: |
interface PartnerDic {
[partnerId: string]: PartnerInfo;
}
@nulIptr
nulIptr / xiaoice core xiaopeng test.EXCEL.yaml
Created July 23, 2021 06:00
包含answerfeed and metadata
name: xiaoice core xiaopeng test
description: 包含answerfeed and metadata
host: EXCEL
api_set: {}
script:
content: |
var PARTNERS = {};
const INT_CORE_CHAT_URL =
"http://localhost:3000/int-xiaoicecore-commercialshare.trafficmanager.cn/api/chitchat/reply?workflow={{workflow}}";
const PPE_CORE_CHAT_URL =
@nulIptr
nulIptr / eva log.EXCEL.yaml
Last active July 12, 2021 08:57
Create a new snippet from a blank template.
name: eva log
description: Create a new snippet from a blank template.
host: EXCEL
api_set: {}
script:
content: |
$("#run").click(() => tryCatch(run));
function isNum(char) {
return "1234567890".indexOf(char) >= 0;
}
testhttpresource from gist
@nulIptr
nulIptr / xiaoice core test.EXCEL.yaml
Last active June 11, 2021 08:49
包含answerfeed
name: xiaoice core test
description: 包含answerfeed
host: EXCEL
api_set: {}
script:
content: |
var PARTNERS = {};
const INT_CORE_CHAT_URL =
"http://localhost:3000/int-xiaoicecore-commercialshare.trafficmanager.cn/api/chitchat/reply?workflow={{workflow}}";
const PPE_CORE_CHAT_URL =