您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Automatically opens the preview slider for all items by clicking on image of story.
当前为
// ==UserScript== // @id FeedlyautopreviewmodMod // @name Feedly Autopreview All Items // @version 1.0.7 // @description Automatically opens the preview slider for all items by clicking on image of story. // @include http://feedly.com/* // @namespace https://greasyfork.org/users/4819 // ==/UserScript== function transformAnchors() { //get every anchor node var anchornodes = document.getElementsByTagName("div"); //transform every anchor for (var i=0; i<anchornodes.length; ++i){ //grab the current anchor node anchornode = anchornodes[i]; //ignore erroneous nodes with no parent if (anchornode.getAttribute("class") == "u5Entry ") { anchornode.setAttribute("data-page-entry-action", "previewEntry"); } if (anchornode.getAttribute("class") == "visual-overlay") { anchornode.setAttribute("data-page-entry-action", "previewEntry"); } if (anchornode.getAttribute("class") == "visual") { anchornode.setAttribute("data-page-entry-action", "previewEntry"); } if (anchornode.getAttribute("class") == "u5Entry quicklisted") { anchornode.setAttribute("data-page-entry-action", "previewEntry"); } if (anchornode.getAttribute("class") == "u5EntryAnnotationHolder quicklisted") { anchornode.setAttribute("data-page-entry-action", "previewEntry"); } if (anchornode.getAttribute("class") == "u5EntryAnnotationHolder") { anchornode.setAttribute("data-page-entry-action", "previewEntry"); } } } document.addEventListener("DOMNodeInserted", transformAnchors, true);