This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name 全自动风纪委 | |
// @description 进入评价界面自动开始提交风纪委评价 | |
// @namespace http://tampermonkey.net | |
// @supportURL https://github.com/ZiuChen/userscript | |
// @version 0.5 | |
// @author ZiuChen | |
// @updateURL https://cdn.jsdelivr.net/gh/ZiuChen/userscript@main/scripts/bili-auto-judgement.user.js | |
// @downloadURL https://cdn.jsdelivr.net/gh/ZiuChen/userscript@main/scripts/bili-auto-judgement.user.js | |
// @match https://www.bilibili.com/judgement/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Save base64 image to disk | |
try { | |
// Decoding base-64 image | |
// Source: http://stackoverflow.com/questions/20267939/nodejs-write-base64-image-file | |
function decodeBase64Image(dataString) { | |
var matches = dataString.match(/^data:([A-Za-z-+\/]+);base64,(.+)$/); | |
var response = {}; | |
if (matches.length !== 3) { | |
return new Error('Invalid input string'); |