MyAnimeList Swap Peoples' Name Order

Swaps the name of people on MyAnimeList from the regular "Last Name, First Name" to "First Name Last Name"

  1. // ==UserScript==
  2. // @name MyAnimeList Swap Peoples' Name Order
  3. // @namespace https://gf.qytechs.cn/en/users/96096-purple-pinapples
  4. // @version 1.3.0
  5. // @description Swaps the name of people on MyAnimeList from the regular "Last Name, First Name" to "First Name Last Name"
  6. // @author PurplePinapples
  7. // @match https://myanimelist.net/people.php?id=*
  8. // @match https://myanimelist.net/people/*
  9. // @license WTFPL
  10. // @run-at document-end
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. const css_selector = "h1 > strong"
  16. let name = $(css_selector).text();
  17. let commaIndex = name.indexOf(",");
  18. if (commaIndex != -1) {
  19. let swappedName = name.substring(commaIndex + 2) + " " + name.substring(0, commaIndex);
  20. $(css_selector).html(swappedName);
  21. }
  22. })();

QingJ © 2025

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