🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Greasy Fork is available in English.

📂 缓存分发状态(共享加速已生效)
🕒 页面同步时间:2025/12/29 04:00:18
🔄 下次更新时间:2025/12/29 05:00:18
手动刷新缓存

recommendAllComments

Recommend all comments in a diary - this version also handles checkboxes

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @author         InsultComicDog
// @version        2012-09-29
// @name           recommendAllComments
// @namespace      http://www.dailykos.com
// @description    Recommend all comments in a diary - this version also handles checkboxes
// @include        *
// ==/UserScript==

var j=0;
var i=0;
var rbuttons;

function innerloop() {
    if (rbuttons[i].type == 'radio' &&
        rbuttons[i].value == 4 && 
        rbuttons[i].id[0]=='r' &&
        rbuttons[i].checked == false)
    {
        rbuttons[i].checked = true;
        rbuttons[i].click();
        j++;
    }
    else
    {
        if (rbuttons[i].type == 'checkbox' &&
            rbuttons[i].checked == false &&
            rbuttons[i].id[0] == 'r')
        {
            rbuttons[i].checked = true;
            rbuttons[i].click();
            j++;
        }
    }
}
function recommendAllComments2() {
    rbuttons = document.getElementsByTagName('input');
    if (rbuttons.length)
    {
        
        for (i = 0; 
             i < rbuttons.length;
             i++) 
        { 
            var x = setTimeout(innerloop(), 0);
        }
        alert("recommended "+j+" comments");
        
    } 
}
function recommendAllComments() {
    setTimeout(recommendAllComments2(), 0);
}

GM_registerMenuCommand("Recommend All", recommendAllComments, null, "R","R");