您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
一些优化
当前为
// ==UserScript== // @name Feedly 优化 // @namespace https://feedly.com // @version 2024.02.23 // @description 一些优化 // @author Ejin // @match https://feedly.com/* // @grant none // ==/UserScript== // 2024.02.23 First-read,跳转到第一个已读项 (function() { 'use strict'; setInterval(()=>{//route // 1.First-read if(location.href.indexOf("feedly.com/i/subscription/feed") != -1){ if(document.querySelector(".detail+.list-tags") != null && document.querySelector(".detail+.list-tags").innerHTML.indexOf("First-read") == -1 ){ document.querySelector(".detail+.list-tags").innerHTML += "<a href='javascript:;' id='First-read'>/First-read</a>"; document.getElementById("First-read").addEventListener('click',()=>{ var FunID=setInterval(()=>{//First-read Function document.getElementById("First-read").style.display="none"; if(document.querySelector("html").getAttribute("FunURL") != null){ if(document.querySelector("html").getAttribute("FunURL") != location.href){ clearInterval(document.querySelector("html").getAttribute("FunID")); document.querySelector("html").removeAttribute("FunID"); document.querySelector("html").removeAttribute("FunURL"); return; } } if(document.querySelectorAll(".EntryTitle").length > 0){ if(document.querySelectorAll(".EntryTitle--read").length==0){ document.querySelectorAll(".EntryTitle")[document.querySelectorAll(".EntryTitle").length-1].scrollIntoView(); } else { document.querySelectorAll(".EntryTitle--read")[0].scrollIntoView(); clearInterval(document.querySelector("html").getAttribute("FunID")); document.querySelector("html").removeAttribute("FunID"); document.querySelector("html").removeAttribute("FunURL"); } } },1000);//setInterval document.querySelector("html").setAttribute("FunID",FunID); document.querySelector("html").setAttribute("FunURL",location.href); }); } } //end 1. },500);//setInterval })(); //end all