番组计划主页观看进度中文标题

Bangumi番组计划 主页观看进度 中文标题

  1. // ==UserScript==
  2. // @name 番组计划主页观看进度中文标题
  3. // @namespace https://github.com/machsix
  4. // @version 1.1
  5. // @description Bangumi番组计划 主页观看进度 中文标题
  6. // @author machsix
  7. // @icon http://bgm.tv/img/favicon.ico
  8. // @include *://bgm.tv/
  9. // @include *://bangumi.tv/
  10. // @grant none
  11. // @run-at document-end
  12. // ==/UserScript==
  13.  
  14. const epGrids = document.querySelectorAll('.infoWrapper_tv .epGird');
  15. epGrids.forEach((item) => {
  16. const node = item.children[0].children[1];
  17. const a = node.getAttribute('data-subject-name-cn');
  18. if (a) node.innerText = a;
  19. });
  20.  
  21. const grid2 = document.querySelectorAll('#prgSubjectList .clearit');
  22. grid2.forEach((item) => {
  23. const rootNode = item.getElementsByClassName('title')[0];
  24. const titleNode = rootNode.getElementsByTagName('span')[0];
  25. const cnTitle = rootNode.getAttribute('data-subject-name-cn');
  26. if (cnTitle) titleNode.innerText = cnTitle;
  27. });

QingJ © 2025

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