Skip to content

Instantly share code, notes, and snippets.

@ichii731
Created February 27, 2024 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ichii731/fd1ec8747c6d83ae0539c1e78f26db8b to your computer and use it in GitHub Desktop.
Save ichii731/fd1ec8747c6d83ae0539c1e78f26db8b to your computer and use it in GitHub Desktop.
ギガファイル便のファイルを自動DLするUerScript
// ==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