修改知乎日报标题

修改知乎日报标题为文章标题

  1. // ==UserScript==
  2. // @name 修改知乎日报标题
  3. // @namespace https://blog.xlab.app/
  4. // @more https://github.com/ttttmr/UserJS
  5. // @version 0.6
  6. // @description 修改知乎日报标题为文章标题
  7. // @author tmr
  8. // @match *://daily.zhihu.com/story/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function () {
  13. 'use strict';
  14. function rename() {
  15. let zh_title = document.querySelector("p[class=DailyHeader-title]").innerText;
  16. let new_title = zh_title + "-知乎日报";
  17. if (document.title !== new_title) {
  18. document.title = new_title;
  19. }
  20. setTimeout(rename, 1000);
  21. }
  22. rename();
  23. })();

QingJ © 2025

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