jset AGENTS.md

Project instructions for jset, a collection of browser scripts that run through Tampermonkey, a browser extension for installing user scripts.

In plain words
What is it for?
Use them when adding or changing a jset script, especially to name files correctly, include required metadata, and install or test scripts.
Why use it?
They give contributors one place to check the project layout, naming rules, metadata requirements, and manual testing process.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/pdone/jset/agents-md
Clone the repo
git clone --depth 1 https://github.com/pdone/jset

Made for: Codex, OpenCode.

Per session 1,912 This file is loaded in full into every session.
When invoked 1,912 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.01912 $0.01912
Opus 5 $0.00956 $0.00956
Sonnet 5 $0.00382 $0.00382
Haiku 4.5 $0.00191 $0.00191

Measured yesterday against content hash c52d37e32595, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

jset AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 237 lines

How it starts

The opening of the file, as written. The whole thing — 237 lines — stays where its author put it; the contents beside it link to each section on GitHub.

jset - Tampermonkey Userscripts

本项目包含用于 Tampermonkey 的浏览器用户脚本集合,用于定制和增强网页功能。

维护者信息

pdone

📁 项目结构

jset/
├── 📄 AGENTS.md          # 编码规范和项目指南
├── 📄 README.md          # 项目说明
└── 📂 src/               # 用户脚本源代码
    └── *.user.js         # 用户脚本文件

构建和测试

本项目为纯 JavaScript 用户脚本,无需构建步骤。

  • 无 package.json - 不使用 npm/yarn 依赖管理
  • 无构建命令 - 脚本直接复制到 Tampermonkey 中使用
  • 无测试框架 - 手动测试脚本功能
  • 安装方式: 复制 .user.js 文件内容到 Tampermonkey 编辑器,或使用 "Install from URL"

文件命名规范

  • 脚本文件必须以 .user.js 结尾
  • 使用 kebab-case 命名: site-feature.user.js
  • 示例: github-dark-mode.user.js, bilibili-auto-like.user.js

代码风格指南

1. 元数据块 (Metadata Block) - 必需

每个脚本必须以标准元数据块开头:

// ==UserScript==
// @name         脚本中文名称
// @name:en      Script English Name
// @namespace    http://tampermonkey.net/
// @version      1.0.0
// @description  脚本功能描述
// @description:en Script description
// @author       作者名
// @match        https://example.com/*
// @grant        GM_addStyle
// @grant        GM_setValue
// @grant        GM_getValue
// @run-at       document-end
// @license      MIT
// ==/UserScript==

必需字段:

  • @name - 脚本名称(支持多语言 :zh-CN, :en
  • @namespace - 命名空间(通常用 URL 或唯一标识)
  • @version - 版本号(语义化版本,如 1.0.0)
  • @match - 匹配的 URL 模式(推荐用 @match 替代 @include
  • @description - 脚本描述(支持多语言)

常用可选字段:

  • @author - 作者名称
  • @grant - 声明使用的 GM API(见下方说明)
  • @run-at - 执行时机:document-start, document-end (默认), document-idle
  • @require - 引入外部库 URL
  • @resource - 引入静态资源
  • @icon - 脚本图标 URL
  • @license - 许可证

2. GM API 使用规范

必须显式声明 @grant:

// @grant GM_addStyle          // 添加 CSS 样式
// @grant GM_setValue          // 存储数据
// @grant GM_getValue          // 读取数据
// @grant GM_deleteValue       // 删除数据
// @grant GM_xmlhttpRequest    // 跨域请求
// @grant GM_openInTab         // 打开新标签页
// @grant GM_notification      // 显示通知
// @grant GM_registerMenuCommand // 注册菜单命令
// @grant unsafeWindow         // 访问页面 window 对象
// @grant none                 // 不使用沙箱(直接使用页面环境)

Read the full file on GitHub · 237 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 237 lines · 1,912 tokens per session scan A c52d37e32595

Subscribe to this mod's changes

jset AGENTS.md is an instructions file published in the GitHub repository pdone/jset (5 stars, last pushed 6mo ago), licensed MIT. It adds 1,912 tokens to every session, about $0.0096 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.