InoReader Colorful ListView

InoReader Colorful list view

目前為 2015-01-25 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @id inoreadercolorfullistview
  3. // @name InoReader Colorful ListView
  4. // @author http://t.qq.com/HeartBlade
  5. // @homepage http://userscripts.org/scripts/show/174161
  6. // @version 0.9.12
  7. // @description InoReader Colorful list view
  8. // @include http*://www.inoreader.com/*
  9. // @include http*://inoreader.com/*
  10. // @include http*://beta.inoreader.com/*
  11. // @run-at document-end
  12. // @namespace https://gf.qytechs.cn/users/8635
  13. // ==/UserScript==
  14. (function() {
  15. document.getElementById("reader_pane").addEventListener("DOMNodeInserted",function (){
  16. var article=document.getElementsByClassName("article_header");
  17. for(var i=0;i<article.length;i++){
  18. var hue=article[i].parentNode.attributes["data-suid"].value*10%360;
  19. if (/article_unreaded/.test(article[i].parentNode.className)){
  20. article[i].setAttribute("style","background-color:hsl("+hue+",70%,80%);");
  21. article[i].childNodes[3].childNodes[1].setAttribute("style","background-color:hsl("+hue+",70%,80%);");
  22. }else if(/\barticle\b/.test(article[i].parentNode.className)){
  23. article[i].style.background="";
  24. article[i].childNodes[3].childNodes[1].setAttribute("style","background-color:#f2f2f2");
  25. }
  26. }
  27. },false);
  28.  
  29. })();

QingJ © 2025

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