KTANE Manual Renamer

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

  1. // ==UserScript==
  2. // @name KTANE Manual Renamer
  3. // @namespace https://matthewmccaskill.ml/
  4. // @version 1.1
  5. // @description Rename some of the alternate manuals to a more descriptive title.
  6. // @author ZekNikZ
  7. // @match https://ktane.timwi.de/
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12. 'use strict';
  13. var observer = new MutationObserver(function(mutations) {
  14. // For the sake of...observation...let's output the mutation to console to see how this all works
  15. mutations.forEach(function(mutation) {
  16. console.log(mutation.type);
  17. });
  18.  
  19. $('.manual-select > a > li').each(function(e){
  20. $(this).text($(this).text().replace(/embellished/g, 'manual with some extra blah put in')
  21. .replace(/translated full/g, 'manual with different-looking blah instead')
  22. .replace(/translated/g, 'manual with some different-looking blah instead')
  23. .replace(/cheat sheet/g, 'manual with all of the blah cut out')
  24. .replace(/blank sheet/g, 'manual with some of the blah erased')
  25. .replace(/steps skipped/g, 'manual with some of the blah done already')
  26. .replace(/optimized/g, 'manual with with some better blah instead')
  27. .replace(/rearranged/g, 'manual with the blah in a different order')
  28. .replace(/original/g, 'manual with the original blah instead')
  29. .replace(/lookup table/g, 'manual with all of the blah done already in table form')
  30. .replace(/card reference/g, 'manual with some of the blah explained')
  31. .replace(/names/g, 'manual with some of the blah named')
  32. .replace(/colored/g, 'manual with some of the blah in color')
  33. .replace(/interactive/g, 'manual with interactive blah')
  34. .replace(/reworded/g, 'manual with some different blah instead')
  35. .replace(/flipped/g, 'manual with the blah flipped')
  36. .replace(/condensed/g, 'manual with some of the blah cut out'));
  37. });
  38. });
  39. observer.observe(document.body, {attributes: false, childList: true, characterData: false});
  40. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址