您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
AdHelper clicks on advertisements automatically in the background so you can support reddit
- // ==UserScript==
- // @name AdHelper
- // @namespace AdHelper
- // @description AdHelper clicks on advertisements automatically in the background so you can support reddit
- // @include *reddit.com*
- // @version 3
- // @grant GM_xmlhttpRequest
- // ==/UserScript==
- window.onload = function () {
- var spLinks = document.querySelectorAll(".promoted a.title");
- for (i = 0; i < spLinks.length; i++)
- {
- spLinks[i] && spLinks[i].href && GM_xmlhttpRequest({method: "GET", url: spLinks[i].href});
- }
- };