Patreon bulk attachment downloader
To use this script first install Greasemonkey (Firefox only), Violentmonkey or Tampermonkey.
// ==UserScript== | |
// @name Art Fight - full width profile settings | |
// @version 1 | |
// @grant none | |
// @match https://artfight.net/user/settings/profile | |
// ==/UserScript== | |
for(const column of document.querySelectorAll("#content .row > *")) { | |
column.setAttribute("class", "col-12"); | |
} |
Patreon bulk attachment downloader
To use this script first install Greasemonkey (Firefox only), Violentmonkey or Tampermonkey.
""" | |
Quick and dirty script to extract ZIP files when you don't have enough space | |
for both ZIP and extracted files at the same time. | |
It extracts files from the end of the ZIP and then removes them from the archive. | |
Even if you abort with Ctrl+C the ZIP file should be valid. | |
First parameter is the ZIP file. | |
Second parameter is the output dir. | |
""" |
// ==UserScript== | |
// @name Kemono Party attachment download fixer | |
// @author anadius | |
// @namespace anadius.hermietkreeft.site | |
// @match https://kemono.party/* | |
// @version 1.0.0 | |
// @grant GM.xmlHttpRequest | |
// @run-at document-end | |
// ==/UserScript== |
Around the Sims download helper
To use this script first install Greasemonkey (Firefox only), Violentmonkey or Tampermonkey.
// ==UserScript== | |
// @name Origin Helper | |
// @author anadius | |
// @namespace anadius.hermietkreeft.site | |
// @homepageURL https://anadius.su/origin-helper | |
// @match *://www.ea.com/* | |
// @version 3.0.0 | |
// @icon https://user-images.githubusercontent.com/8550471/187077252-2905e2dc-3241-4946-b1b3-f845a337d766.png | |
// @icon64 https://user-images.githubusercontent.com/8550471/187077254-476758f1-b784-45bf-a484-18d3ac704e44.png | |
// @grant GM.xmlHttpRequest |
""" | |
This module is an improved `zipfile` module. Changes: | |
* fixed function for stripping the `extra` field of file header | |
+ added `compresslevel` support for LZMA compression | |
possible values: integer from 0 to 9 or a filter dict, like `{"dict_size": 67108864}` | |
https://docs.python.org/3/library/lzma.html#specifying-custom-filter-chains | |
+ when `ZipFile.store_if_smaller` is set to True and the compressed size is bigger than | |
the uncompressed size - scrap the compressed data and store file without compression; | |
+ added functions for writing/reading raw bytes or Python objects (anything that's | |
JSON serializable) to `extra` fields of file headers (up to 64KiB per file/folder) |
Select the code below and add drag it to bookmarks bar. And if you want to read the full code see the file below.
javascript:(function()%7Bconst%20addJS%20%3D%20url%20%3D%3E%20new%20Promise((resolve%2C%20reject)%20%3D%3E%20%7B%0A%20%20const%20js%20%3D%20document.createElement('script')%3B%0A%20%20js.onload%20%3D%20resolve%3B%0A%20%20js.onerror%20%3D%20reject%3B%0A%20%20js.src%20%3D%20url%3B%0A%20%20document.body.appendChild(js)%3B%0A%7D)%3B%0A%0A(async%20()%20%3D%3E%20%7B%0A%20%20await%20Promise.all(%5B%0A%20%20%20%20addJS('https%3A%2F%2Fcdn.jsdelivr.net%2Fnpm%2Fjszip%403.7.1%2Fdist%2Fjszip.min.js')%2C%0A%20%20%20%20addJS('https%3A%2F%2Fcdn.jsdelivr.net%2Fnpm%2Ffile-saver-es%402.0.5%2Fdist%2FFileSaver.min.js')%0A%20%20%5D)%3B%0A%20%20const%20data%20%3D%20JSON.parse(document.querySelector('%23reader-init').innerHTML)%3B%0A%20%20const%20response%20%3D%20await%20fetch(data.manifest)%3B%0A%20%20const%20manifest%20%3D%20await%20response.json()%3B%0A%0A%20%20const%20zip%20%3D%20JSZip()%3B%0A%20%20const%20fol
const PUBLIC_KEY = '<PUBLIC KEY from your app>'; | |
const POST_ERROR = true; // return the error message if your command function fails | |
/* | |
* @typedef slashCommandResult | |
* @type {array} | |
* @property {integer} 0 - InteractionResponseType: | |
* https://discord.com/developers/docs/interactions/slash-commands#interaction-response-interactionresponsetype | |
* @property {Object|string} [1] - optional; string if you want a simple response | |
* or InteractionApplicationCommandCallbackData object: |
// ==UserScript== | |
// @name CS RIN add missing icons to Steam BBcode generator | |
// @author anadius | |
// @match *://cs.rin.ru/forum/* | |
// @version 1.0.1 | |
// @grant none | |
// ==/UserScript== | |
const injection = () => { | |
SteamInfoBBCode.categoryIcons["PvP"] = "https://i.imgur.com/vt0nOoQ.png"; |