Ikun Scripts

Page Title Prefix

ikun · 1.0.0 · Installs 1 · Today 1 · Updated 2026-09-20 13:50

Script language Simplified Chinese · Also Simplified Chinese, Indonesian, Japanese, Korean, Traditional Chinese

Prefix the document title with [Ikun] so you can tell the script is running.

Install

Opening the URL above in Ikun Browser asks you to install. Update checks use the same URL.

Version history

Namespace https://scripts.ikunbrowser.com/demo/title-prefix

Matches

Grants

Source

// ==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;
  }
})();