Created
February 27, 2024 19:08
-
-
Save ichii731/fd1ec8747c6d83ae0539c1e78f26db8b to your computer and use it in GitHub Desktop.
ギガファイル便のファイルを自動DLするUerScript
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 New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-02-26 | |
// @description try to take over the world! | |
// @author You | |
// @match https://*.gigafile.nu/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=gigafile.nu | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
const dlkey = document.getElementById('dlkey'); | |
const path = location.pathname.split('/').pop(); | |
if(dlkey.disabled) { | |
download(path, false, false); | |
return; | |
} | |
dlkey.value = prompt('Enter your dlkey'); | |
download(path, true, false); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment