MCPcopy Index your code
hub / github.com/hoothin/UserScripts / submitReply

Function submitReply

T66y tool/T66y tool.user.js:261–280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

259 return (today == monthLast2Day);
260 }
261 function submitReply() {
262 $.ajax({
263 type: form.attr('method'),
264 url: form.attr('action'),
265 data: form.serialize(),
266 success: function (res) {
267 if (res.indexOf("發貼完畢點擊進入主題列表") == -1) {
268 replyFail();
269 alert($(res).find("ol").text() || $(res).find("center").text());
270 quickReply.removeAttr("disabled");
271 } else {
272 replySuccess();
273 }
274 },
275 fail: function (e) {
276 replyFail();
277 quickReply.removeAttr("disabled");
278 }
279 });
280 }
281 if (isCheckIn && isRushTime()) {
282 let reachRushMinute = false;
283 var rushReply = $( `<input style="margin-left: 10px" class="btn" type="button" value="定時搶簽">` );

Callers 3

requestRushFunction · 0.85
checkRushFunction · 0.85
t66yFunction · 0.85

Calls 3

replyFailFunction · 0.85
replySuccessFunction · 0.85
$Function · 0.50

Tested by

no test coverage detected