KTANE Manual Renamer

Rename some of the alternate manuals to a more descriptive title.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         KTANE Manual Renamer
// @namespace    https://matthewmccaskill.ml/
// @version      1.1
// @description  Rename some of the alternate manuals to a more descriptive title.
// @author       ZekNikZ
// @match        https://ktane.timwi.de/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    var observer = new MutationObserver(function(mutations) {
	    // For the sake of...observation...let's output the mutation to console to see how this all works
	    mutations.forEach(function(mutation) {
		    console.log(mutation.type);
	    });

        $('.manual-select > a > li').each(function(e){
            $(this).text($(this).text().replace(/embellished/g, 'manual with some extra blah put in')
                     .replace(/translated full/g, 'manual with different-looking blah instead')
                     .replace(/translated/g, 'manual with some different-looking blah instead')
                     .replace(/cheat sheet/g, 'manual with all of the blah cut out')
                     .replace(/blank sheet/g, 'manual with some of the blah erased')
                     .replace(/steps skipped/g, 'manual with some of the blah done already')
                     .replace(/optimized/g, 'manual with with some better blah instead')
                     .replace(/rearranged/g, 'manual with the blah in a different order')
                     .replace(/original/g, 'manual with the original blah instead')
                     .replace(/lookup table/g, 'manual with all of the blah done already in table form')
                     .replace(/card reference/g, 'manual with some of the blah explained')
                     .replace(/names/g, 'manual with some of the blah named')
                     .replace(/colored/g, 'manual with some of the blah in color')
                     .replace(/interactive/g, 'manual with interactive blah')
                     .replace(/reworded/g, 'manual with some different blah instead')
                     .replace(/flipped/g, 'manual with the blah flipped')
                     .replace(/condensed/g, 'manual with some of the blah cut out'));
        });
    });
    observer.observe(document.body, {attributes: false, childList: true, characterData: false});
})();