Bangumi Pull Up Alternative Titles

Move alternative titles just below the Chinese title

  1. // ==UserScript==
  2. // @name Bangumi Pull Up Alternative Titles
  3. // @namespace https://gf.qytechs.cn/users/193469
  4. // @description Move alternative titles just below the Chinese title
  5. // @version 1.2
  6. // @author Rui LIU (@liurui39660)
  7. // @match https://bgm.tv/subject/*
  8. // @match https://bangumi.tv/subject/*
  9. // @match https://chii.in/subject/*
  10. // @icon https://icons.duckduckgo.com/ip2/bgm.tv.ico
  11. // @license MIT
  12. // @run-at document-end
  13. // ==/UserScript==
  14.  
  15. (function () {
  16. 'use strict';
  17.  
  18. const nodeInfobox = document.getElementById('infobox');
  19. let indexInsert = Number(nodeInfobox.children[0].textContent.startsWith('中文名:'));
  20. for (const li of nodeInfobox.children)
  21. if (li.textContent.trim().startsWith('别名:'))
  22. nodeInfobox.insertBefore(li, nodeInfobox.children[indexInsert++]);
  23. })();

QingJ © 2025

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