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
import shutil | |
import os.path | |
from glob import glob | |
import imagehash | |
from PIL import Image | |
def rename_images(filenames): | |
print("Hashing...", end="\r") | |
nnames = dict() | |
errored_images = [] |
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
def sha256sum(filename): | |
h = hashlib.sha256() | |
b = bytearray(128*1024) | |
mv = memoryview(b) | |
with open(filename, 'rb', buffering=0) as f: | |
for n in iter(lambda : f.readinto(mv), 0): | |
h.update(mv[:n]) | |
return h.hexdigest() |
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
<div style="padding: 0; margin: 0; height: 100vh; width: 100vw; background: rgb(0, 0, 0); position: fixed; z-index: 10000000;"> | |
<style> | |
svg#pre_svg { | |
position: fixed; | |
top: 20%; | |
height: 60%; | |
left: 20%; | |
width: 60%; | |
} | |
</style> |
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 AndroidArsenal image previewer | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @run-at document-end | |
// @description Adds button to preview library-related images. Not so beautiful nowadays, but it works! | |
// @author Nuark | |
// @match *://android-arsenal.com/ | |
// @match *://android-arsenal.com/tag* | |
// @grant none |
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 Reshuege autosolver | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Automatically solve tests from reshguege | |
// @author Nuark | |
// @match *://*.sdamgia.ru/test* | |
// @grant none | |
// @run-at document-end | |
// ==/UserScript== |
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 Nozomi Exporter | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Exporting posts from NL | |
// @author Nuark | |
// @match https://nozomi.la/ | |
// @match https://nozomi.la/tag/* | |
// @grant none | |
// @run-at document-end |
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
let fancyTimeFormat = function (time) { | |
// Hours, minutes and seconds | |
var hrs = ~~(time / 3600); | |
var mins = ~~((time % 3600) / 60); | |
var secs = ~~time % 60; | |
// Output like "1:01" or "4:03:59" or "123:03:59" | |
var ret = ""; | |
if (hrs > 0) { |
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 q32 shortener autoredirector | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Bypass q32 | |
// @author Nuark | |
// @match https://q32.ru/* | |
// @grant none | |
// ==/UserScript== |
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 AkumaMoe Helper | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Helps download mangas from akuma.moe | |
// @author Nuark | |
// @connect s1.akuma.moe | |
// @match https://*akuma.moe/* | |
// @require https://cdnjs.cloudflare.com/ajax/libs/jszip/3.2.0/jszip.min.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/1.3.8/FileSaver.min.js |