统计语雀文章总数

统计语雀文章总数!

  1. // ==UserScript==
  2. // @name 统计语雀文章总数
  3. // @namespace https://www.yuque.com/istao
  4. // @version 0.1
  5. // @description 统计语雀文章总数!
  6. // @author https://www.yuque.com/istao
  7. // @match https://www.yuque.com/dashboard/books
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=yuque.com
  9. // @grant none
  10. // @license MIT
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15. setTimeout(() => {
  16. let dom = document.querySelectorAll('.ant-card-body')
  17. let sum = 0
  18. dom.forEach((item) => {
  19. sum += Number(item.children[2].children[0].children[0].innerHTML)
  20. })
  21. console.log('%c'+sum,'font-size:36px;color:red;')
  22. }, 2000)
  23. })();

QingJ © 2025

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