Greasy Fork

Greasy Fork is available in English.

学习通网易云评论

学习通自动水网易云热评,每秒一条

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         学习通网易云评论
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  学习通自动水网易云热评,每秒一条
// @author       zhoujunbo
// @match        *://*.chaoxing.com/*
// @grant        none
// ==/UserScript==

function form_rep_submit2(topicId,clazzid,cpi,ut){
    var content = $("#" + topicId).val();
    var img=$("#images_img_"+topicId).find("img");
    var str="";
    for(var i=0;i<img.size();i++){
        var imgsrc=img[i];
        if(i==img.size()){
            str=str+imgsrc.src.replace("100_100","origin");
        }else{
            str=str+imgsrc.src.replace("100_100","origin")+",";
        }
    }
    if((content==""||content=="回复话题:"||content.trim()=='')&&str==""){
        alert("请输入回复内容!");
        return false;
    }
    if(typeof(cpi) == "undefined" || cpi == ""){
        cpi = 0;
    }
    if(typeof(ut) == "undefined" ){
        ut = "t";
    }
    var allAttachment = getAllNoticeAttachment();
    jQuery.ajax({
        type: "post",
        url : "/bbscircle/addreply",
        dataType:'html',
        data: {
            clazzid : clazzid,
            topicId : topicId,
            content : content,
            files : str,
            cpi : cpi,
            ut : ut,
            attachmentFile:allAttachment,
            openc : getOpenc()
        },
        success: function(data){
            if (data.indexOf('error') == 0) {
                alert(data.replace('error;',''));
                return;
            }

        }
    });
}
var i = 1;
setInterval(function() {$.ajax({
    url:"https://api.oioweb.cn/api/wyypl.php",
    type:'get',
    success:function(res){
        console.log("《"+res.SongName+"》"+"--热评---"+res.Comment+res.SongPic);
        document.getElementsByClassName("hfInp")[0].innerHTML="《"+res.SongName+"》"+"--热评---"+"\n"+res.Comment;
        var bigImg = document.createElement("img");		//创建一个img元素
        bigImg.src=res.SongPic;
        document.getElementsByClassName('tlPic')[0].appendChild(bigImg)
        $(".grenBtn")[0].click();
        document.getElementsByClassName('tlPic')[0].removeChild(bigImg )
        console.log("----"+i+"---"+new Date());
        i++;
    }
})
                       }
            , 1000);