This script does not handle files with same names. I took the liberty of including a simple counter at the beginning of each file to ensure that no two files have same names even if they would be uploaded with matching names. Everything else is identical.
// ==UserScript==
// @name...