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

Greasy fork 爱吃馍镜像

Greasy Fork is available in English.

📂 缓存分发状态(共享加速已生效)
🕒 页面同步时间:2026/01/05 07:04:58
🔄 下次更新时间:2026/01/05 08:04:58
手动刷新缓存

Zhihu Auto invitation and Report

Zhihu Auto invitation to answer and report

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

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

公众号二维码

扫码关注【爱吃馍】

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

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

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

公众号二维码

扫码关注【爱吃馍】

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

// ==UserScript==
// @name          Zhihu Auto invitation and Report
// @name:zh-TW   逼乎自動邀請回答加舉報
// @namespace    HTTP://WWW.RUSSIAVK.COM/
// @version      0.2
// @description  Zhihu Auto invitation to answer and report
// @description:zh-TW 逼乎一鍵自動邀請回答+舉報
// @author       WWW.RUSSIAVK.CN
// @supportURL   [email protected]
// @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Greasy+Fork+donation
// @match        https://www.zhihu.com/question/*
// @require      https://code.jquery.com/jquery-latest.js
// ==/UserScript==
(function() {
    'use strict';
    const d=document,w=window,href=location.href,id=href.substring(href.indexOf('n/')+2,href.indexOf('/a'));
    w.onload=function(){
        let QuestionAskButton=d.querySelector('.FollowButton').cloneNode(),
            QuestionHeaderActions=d.querySelector('.QuestionHeaderActions'),
            JbList=d.createElement('ol')
        ;
        QuestionAskButton.innerText='自動邀請';
        QuestionAskButton.onmouseover=function(){
            Auto();
        };
        QuestionHeaderActions.appendChild(QuestionAskButton);
        QuestionHeaderActions.appendChild(JbList);
        const JbMap = new Map([['不構提問','ambiguity'],['主觀判斷','subjective'],['缺乏來源','rumour'],['辱駡','abuse'],['引爭議','provoke'],['求醫問藥','medicine'],['個人任務','personal'],['廣告','spam'],['政治敏感','politics'],['色情低俗','porn'],['自殺','suicide'],['違規','illegality'],['照片徵集','worthless']]);
                              let JbIndex,i=0;
        JbMap.forEach(function (key, value, map){
            JbIndex=d.createElement('ul');//QuestionAskButton.cloneNode();
            JbIndex.innerText=value;
            JbIndex.style.backgroundColor="#0084ff";
            JbIndex.style.padding='10px';
            JbIndex.style.margin='10px';
            JbIndex.style.float='left';
            JbIndex.onmouseover=function(){
                JB(key);
            };
            JbList.appendChild(JbIndex);
            i++
        })
    };
    let data;
    function JB(reason_type){
        data={"resource_id":id,"type":"question","reason_type":reason_type,"source":"web"}
        $.ajax({
            type:'post',
            url:'https://www.zhihu.com/api/v4/reports',
            data:JSON.stringify(data),
            async:false,
            success:function(Result,statusTXT){
            }
        });
    }
    function Auto(){
        d.querySelector('.QuestionHeaderActions button').click();
        let Delay=3500;
        w.setTimeout(function(){
            let Button=d.querySelectorAll('.QuestionInvitation-content .Button--blue')
            for(let i in Button){
                Button[i].click();
            }
        },Delay);
    }
})();