您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Highlight the sponsored content
// ==UserScript== // @name Feedly Sponsor Unmasking // @namespace http://mzsanford.com/ // @version 0.2 // @description Highlight the sponsored content // @author Matt Sanford // @match https://feedly.com/* // @run-at document-end // @grant none // ==/UserScript== (function() { // Your code here... setInterval(function() { let selected = document.getElementsByClassName('SponsorPrompt__sponsored'); console.log('Found:', selected); for (var i=0; i < selected.length; i++) { let elem = selected[i]; console.log('Change', elem); elem.style.backgroundColor = '#FFC300'; elem.style.color = '#fff'; elem.style.padding = '0.2em 0.5em'; elem.style.borderRadius = '1em'; elem.style.display = 'inline'; } }, 2000); })();