🏠 Home 

Greasy Fork is available in English.

MAM Forum Page Re-title

12/14/23 Re-title MAM Forum tab to make it easier to see the topic title


安装此脚本?
  1. // ==UserScript==
  2. // @name MAM Forum Page Re-title
  3. // @namespace yyyzzz999
  4. // @author yyyzzz999
  5. // @namespace http://tampermonkey.net/
  6. // @version 0.2
  7. // @description 12/14/23 Re-title MAM Forum tab to make it easier to see the topic title
  8. // @author You
  9. // @match https://www.myanonamouse.net/f/*
  10. // @icon https://cdn.myanonamouse.net/imagebucket/164109/Mforum.png
  11. // @homepage https://greasyfork.org/en/users/705546-yyyzzz999
  12. // @supportURL https://greasyfork.org/en/scripts/447742-mam-forum-page-re-title/feedback
  13. // @grant none
  14. // @license MIT
  15. // @run-at document-end
  16. // ==/UserScript==
  17. /*jshint esversion: 6 */
  18. // Icon adapted from https://www.freeiconspng.com/downloadimg/24923
  19. (function() {
  20. 'use strict';
  21. let arr = [];
  22. if (document.title.match('>')) {
  23. arr = document.title.split("> "); // for titles like: "Forums: Support => Tips, Tricks, and Tweaks | My Anonamouse"
  24. console.log("arr ", arr);
  25. } else {
  26. arr = document.title.split(": "); // add space for titles like: "Forums :: View Topic: I messed up :( | My Anonamouse"
  27. console.log("arr ", arr,arr.length );
  28. }
  29. document.title=arr[arr.length-1];
  30. })();