Skip Promoted Posts Script

Detects promoted posts and presses the next button

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Skip Promoted Posts Script
// @namespace    http://heyisthisusernametaken.com/skip_promoted
// @version      0.2
// @description  Detects promoted posts and presses the next button
// @author       heyisthisusernametaken
// @match        http://imgur.com/*
// @require      http://code.jquery.com/jquery-latest.js
// @grant        click
// ==/UserScript==

console.log('Loading "Skip Promoted Posts" script');
//Determine if post is promoted
if (document.getElementsByClassName("promoted-tag").length > 0) {
    console.log('Promoted post detected');
    // Press the next button
    var nextBtns = document.getElementsByClassName("navNext");
    $(window).bind("load", function() {
       console.log("Skipping promoted post");
       nextBtns[0].click();
    });
} else {
    //console.log("not a promoted post");
}

QingJ © 2025

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