QQ邮箱 显示下次扩容时间

try to take over the world!

  1. // ==UserScript==
  2. // @name QQ邮箱 显示下次扩容时间
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1.2
  5. // @description try to take over the world!
  6. // @author luofo
  7. // @match *://mail.qq.com/*
  8. // @grant none
  9. // @license MIT
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14. let c = setInterval(function() {
  15. if (window.frames["mainFrame"] && window.frames["mainFrame"].document.querySelector(".addrtitle b")) {
  16. var node = window.frames["mainFrame"].document.querySelector(".addrtitle");
  17. var selectNode = window.frames["mainFrame"].document.querySelector(".addrtitle b");
  18. var num = selectNode.textContent.match(/([0-9]{1,4})/g).toString();
  19. var newNode = document.createElement('div');
  20. newNode.innerHTML = "下次扩容时间:" + new Date(Date.parse(new Date(num)) + 7776000000).toLocaleDateString();
  21. node.appendChild(newNode);
  22. clearInterval(c);
  23. } else {
  24. return
  25. }
  26. },1000)
  27. // Your code here...
  28. })();

QingJ © 2025

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