Site Notice
hello, world
MediaWiki:Js-ChaoXingDanMuZhuShou.js
From Project-EPB Commons
Invoke this: https://common.wjghj.cn/js/{{#replace:{{#replace:Js-ChaoXingDanMuZhuShou.js|Js-|}}|.js|}}
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/**
*『Wjghj Project Static』
* This _JavaScript_ code is from https://common.wjghj.cn
* CC BY-NC-SA
*
* <超星直播网课弹幕助手>
* 用途:可以用快的飞起的速度狂刷评论,甚至是一口气发数十个评论
* 警告:别刷太多了小心老师打人!!!
* 用法:使用 CustomStyleScript 等浏览器插件在 https://live-rk.chaoxing.com 域名下加载本脚本
**/
window.loadSMM = setInterval(function () {
if (typeof ($) !== 'undefined') {
clearInterval(loadSMM);
if ($('#SMM').length > 0) return;
$('head').append('<link rel="stylesheet" href="https://common.wjghj.cn/css/ChaoXingDanMuZhuShou">');
$('body').append('<div id="SMM"><div id="SMMdrag"></div><div id="SMMinner">发送内容:<br/><textarea id="SMMcontent"></textarea><br/><label>发送次数:<br/><input id="SMMtimes" type="number" value="1" min="1" max="20"></input></label><br/><button id="SMMbtn">发送</button> <label><input id="SMMconfirm" type="checkbox"></input>确认发送</label></div></div>');
$('#SMMbtn').click(function () {
var sendContent = $('#SMMcontent').val(),
sendTimes = Number($('#SMMtimes').val()),
isConfirm = $('#SMMconfirm').prop('checked');
if (sendContent === '') return;
$('#SMMconfirm').prop('checked', false);
window.sendMsg(sendContent, sendTimes, isConfirm);
});
}
}, 100);
window.sendMsg = function (msg, limit, confirm) {
if (limit === undefined) limit = 1;
var times = 1;
var start = setInterval(function () {
if (times > limit) {
clearInterval(start);
return;
}
msg1 = msg.replace(/\$count/ig, times);
$('#RKLBChat_sendText').val(msg1);
if (confirm === true) {
$('#RKLBChat_sendMsg').click();
} else {
console.info('这是debug模式\n发送信息:' + msg1 + '\n发送次数:(' + times + '/' + limit + ')');
}
times = ++times;
}, 200);
}