坤坤脚本

页面标题加前缀

ikun · 1.0.0 · 安装 1 · 今日 1 · 更新于 2026-09-20 13:50

脚本语言 简体中文 · 另有 印尼语, 日语, 繁体中文, 英语, 韩语

在标题前加上 [坤坤],方便确认脚本已运行

安装

用坤坤浏览器打开上面的地址会弹出安装确认。检查更新时也走这个地址。

版本历史

命名空间 https://scripts.ikunbrowser.com/demo/title-prefix

匹配

权限

源码

// ==UserScript==
// @name               页面标题加前缀
// @name:zh-Hans       页面标题加前缀
// @name:zh-Hant       頁面標題加前綴
// @name:en            Page Title Prefix
// @name:ja            ページタイトルに接頭辞
// @name:ko            페이지 제목 접두사
// @name:id            Awalan Judul Halaman
// @namespace          https://scripts.ikunbrowser.com/demo/title-prefix
// @version            1.0.0
// @description        在标题前加上 [坤坤],方便确认脚本已运行
// @description:zh-Hans 在标题前加上 [坤坤],方便确认脚本已运行
// @description:zh-Hant 在標題前加上 [坤坤],方便確認腳本已運行
// @description:en     Prefix the document title with [Ikun] so you can tell the script is running.
// @description:ja     タイトル先頭に [Ikun] を付け、動作確認しやすくします。
// @description:ko     문서 제목 앞에 [Ikun]을 붙여 스크립트 동작을 확인합니다.
// @description:id     Menambah awalan [Ikun] pada judul halaman agar mudah dicek.
// @author             ikun
// @match              *://*/*
// @grant              none
// @license            MIT
// ==/UserScript==

(function () {
  'use strict';
  var tag = '[坤坤] ';
  if (document.title.indexOf(tag) !== 0) {
    document.title = tag + document.title;
  }
})();