Codex Auto Verify

Automatically verifies Codex entries on Greasy Fork.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Codex Auto Verify
// @namespace    http://your.domain.com
// @version      0.1
// @description  Automatically verifies Codex entries on Greasy Fork.
// @author       Your Name
// @match        https://greasyfork.org/en/scripts*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Function to automatically verify Codex entries
    function autoVerifyCodex() {
        // Select all the Codex entries
        const codexEntries = document.querySelectorAll('.codex-item');

        // Loop through each Codex entry
        codexEntries.forEach(entry => {
            // Check if the entry is not already verified
            if (!entry.classList.contains('verified')) {
                // Click on the verify button
                const verifyButton = entry.querySelector('.verify-button');
                verifyButton.click();
            }
        });
    }

    // Call the autoVerifyCodex function when the page loads
    window.addEventListener('load', () => {
        autoVerifyCodex();
    });
})();