This file contains hidden or 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 ZJU Course PDF downloader | |
| // @namespace https://github.com/pyraxo | |
| // @version 0.0.1 | |
| // @description Downloads PDFs from courses.zju.edu.cn | |
| // @author pyraxo | |
| // @match *://courses.zju.edu.cn/course/* | |
| // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAolBMVEVHcEzSUCUQYHR6HErGXSl1gn8FZXUKY3WCYFVxoTp0e3rEdRF1eHl1eXoWYXN5G0p4Jk1ynjx4JU0UY3MNXHcQX3ShQTlznzp0oDlwoTsXYnNzens+Ll14H0t3Jk5xnTwXYnNqoj3MVibGXSnGXSgXYnN1eHl1eHkXYnNzeHpynjxynjx1gH1ynjx1KE91IUx+IEt6pTJ7I0x1KlAWYnN1eHnrkDrOAAAAM3RSTlMAOogm+x50agZ4ahjLqq8+m96xgEiUE7GTfsiHG2LHNOBOSoSh2V/14ZnEX0j35oZTZXyEMjMpAAAAk0lEQVQYlU2P6RaCIBBGQSMBBRS1UlPb9516/1cLhZL7a+aeme/MANBxTpLkegID4ZPMpoWpF9uy5Dz3gmyOe/F2OPA0A4FlrEk9L++GZCPj+FU/hG9ShPoT98JX6tbIey1sqjYTjNCFVoxZQT8/kBFoR6sji6J95JzareOhX480G/eXFYQwdARYFoS4PWj1tybiCyC2DngLtx6dAAAAAElFTkSuQmCC | |
| // @grant none | |
| // @license MIT |
This file contains hidden or 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
| #!/bin/bash | |
| # Directory to save images | |
| OUTPUT_DIR="nijisanji_images" | |
| # Create output directory if it doesn't exist | |
| mkdir -p "$OUTPUT_DIR" | |
| # Function to URL decode a string | |
| urldecode() { |
This file contains hidden or 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
| var fs = require('fs') | |
| var path = require('path') | |
| var Client = require('discord.js').Client | |
| var request = require('request') | |
| var client = new Client({ | |
| maxCachedMessages: 5000 | |
| }) | |
| var lm = {} | |
| var count = 0 |