KTANE Manual Renamer

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

Tendrás que instalar una extensión para tu navegador como Tampermonkey, Greasemonkey o Violentmonkey si quieres utilizar este script.

You will need to install an extension such as Tampermonkey to install this script.

Tendrás que instalar una extensión como Tampermonkey o Violentmonkey para instalar este script.

Necesitarás instalar una extensión como Tampermonkey o Userscripts para instalar este script.

Tendrás que instalar una extensión como Tampermonkey antes de poder instalar este script.

Necesitarás instalar una extensión para administrar scripts de usuario si quieres instalar este script.

(Ya tengo un administrador de scripts de usuario, déjame instalarlo)

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Tendrás que instalar una extensión como Stylus antes de poder instalar este script.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

Para poder instalar esto tendrás que instalar primero una extensión de estilos de usuario.

(Ya tengo un administrador de estilos de usuario, déjame instalarlo)

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