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
/* | |
download_emojis.go | |
https://gist.github.com/Necroforger/5a1a93c8c57c300bb1f112f4c1d7f01b | |
downloads emojis for all of the guilds a user or bot is in to a directory. | |
download_emojis -token <bot_token> [options] | |
options: | |
-n int | |
maximum number of simultaneous downloads (default 5) |
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
package main | |
import ( | |
"database/sql" | |
"flag" | |
"fmt" | |
"image" | |
"image/color" | |
"image/draw" | |
"image/png" |
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
# Download.sh helps keep track of youtube playlists by downloading them in groups | |
# Directory for downloaded playlist metadata. includes the video IDs of the videos in each playlist | |
playlists_folder="playlists_json" | |
# Directory to place downloaded videos, thumbnails, and video metadata JSON files | |
videos_folder="videos" | |
# URL prefix for playlists | |
prefix="" |
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 mastodon_necroforger | |
// @version 1.4 | |
// @description personalizing mastodon | |
// @author Necroforger | |
// @match *://mastodon.social/* | |
// @grant none | |
// ==/UserScript== | |
(async function () { |
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 Youtube Tools Popout Helper | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description replaces links in the end screen to point towards another embed page | |
// @author necroforger | |
// @match https://www.youtube.com/embed/*?*ytt_popout=1* | |
// @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 Youtube Tools | |
// @namespace http://tampermonkey.net/ | |
// @version 1.1 | |
// @description Adds some extra buttons to youtube | |
// @author necroforger | |
// @match https://www.youtube.com/watch* | |
// @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
(function () { | |
// Number of pages to attempt to scroll | |
const pages = 1; | |
// sleep duration between scrolls in milliseconds. | |
// adjust to compensate for network speed. | |
const sleepDuration = 500; | |
/** | |
* Sleep for duration milliseconds |
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
var robot = require("robot-js"); | |
const DRAG_ENABLED = true // enable dragging | |
const DRAG_BUTTON = robot.BUTTON_LEFT; // Mouse button required to drag windows | |
const DRAG_REQUIRE_ALT = false; // Require alt to be pressed to drag a window | |
const DRAG_TELEPORT_MOUSE = true; // Teleport the mouse to the bottom of the video to prevent it from pausing when dragging | |
const DRAG_SENSITIVITY = 30; // Minimum distance mouse is required to move after clicking to drag window | |
const DRAG_REQUIRE_BORDERLESS = true; // Require that a window be borderless to allow dragging | |
const DRAG_REQUIRE_ALWAYS_ON_TOP = true; // require that a window be always on top to allow dragging | |
const DRAG_BOTTOM_DEADZONE = 0; // Leave a deadzone of 'n' pixels from the bottom of the window going upwards. |
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
package main | |
import ( | |
"flag" | |
"image" | |
"image/draw" | |
_ "image/gif" | |
_ "image/jpeg" | |
"image/png" | |
"log" |
NewerOlder