CNBLOGS编辑时间提前

博客园文章编辑时间提前至文章标题右侧,方便查看是否新知识

  1. // ==UserScript==
  2. // @name CNBLOGS编辑时间提前
  3. // @namespace http://cnblogs.com/
  4. // @version 0.3
  5. // @iconURL https://www.cnblogs.com/favicon.ico
  6. // @description 博客园文章编辑时间提前至文章标题右侧,方便查看是否新知识
  7. // @author Richard He
  8. // @license MIT
  9. // @match http*://www.cnblogs.com/*/p/*.html
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function() {
  14. 'use strict';
  15.  
  16. var d = document;
  17. var postTitle = d.querySelector('.postTitle')||d.querySelector('.post>h2');
  18. var postTime = d.querySelector('#post-date');
  19. var timeSpan = d.createElement('span');
  20. timeSpan.innerText = postTime.innerText;
  21. timeSpan.style.float = "right";
  22. timeSpan.style.color = "#ff5e52";
  23. timeSpan.style.marginRight = "80px";
  24. timeSpan.style.fontWeight = "normal";
  25. postTitle.appendChild(timeSpan);
  26.  
  27. })();

QingJ © 2025

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