Skip to content

Instantly share code, notes, and snippets.

View Delivator's full-sized avatar
🏠
Working from home

David Delivator

🏠
Working from home
View GitHub Profile
@Delivator
Delivator / google_search_maps_addon.user.js
Last active April 24, 2024 19:51 — forked from Daan-Grashoff/google_search_maps_addon.js
Bring back the google maps button and make map image clickable when searching on google
// ==UserScript==
// @name Google Search Maps Fix
// @namespace http://tampermonkey.net/
// @version 2024-03-07
// @description Bring Google maps button back
// @author Daan Grashoff / Delivator
// @match https://www.google.com/search*
// @include https://www.google.tld/search*
// @icon https://www.google.com/images/branding/googleg/1x/googleg_standard_color_128dp.png
// @grant none
Param(
[Parameter(Mandatory=$True)]
[string]$Path,
[string]$Quality = "36",
[string]$Preset = "p4",
[string]$Tune = "hq",
[string]$Format = "webm",
[bool]$CopyAudio = $False,
[switch]$Keep
)
Param(
[Parameter(Mandatory=$True)]
[string]$Original,
[Parameter(Mandatory=$True)]
[string]$Compare
)
$OriginalSize = (Get-ChildItem $Original | Measure-Object Length -Sum).sum / 1Gb
$CompareSize = (Get-ChildItem $Compare | Measure-Object Length -Sum).sum / 1Gb
[string]$Difference
@Delivator
Delivator / hide_prime-video-player.js
Created July 6, 2021 23:11
Amazon Prime Video hide player controls
// paste this in your browser's console
// hide
document.querySelector(".webPlayerSDKUiContainer").style.opacity = 0
// show again
document.querySelector(".webPlayerSDKUiContainer").style.opacity = 1
@Delivator
Delivator / open_win-terminal_here.reg
Created December 13, 2020 14:21
Add "Open Windows Terminal here" to directory context menu
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\WindowsTerminal]
@="Windows Terminal Here"
"Icon"="%USERPROFILE%\\terminal\\wt_32.ico"
[HKEY_CLASSES_ROOT\Directory\Background\shell\WindowsTerminal\command]
@="wt.exe -d \"%V\""
// ==UserScript==
// @name Cookie clicker SkyDB backup
// @namespace https://github.com/Delivator
// @version 0.1
// @description A plugin that allows you to save your Cookie Clicker game save to skynet.
// @author Delivator
// @match https://orteil.dashnet.org/cookieclicker/
// @grant none
// ==/UserScript==
@Delivator
Delivator / smartlink.js
Created November 6, 2020 19:51
Smart skylink
@Delivator
Delivator / 4chan2skygallery.user.js
Last active September 8, 2020 20:37
User script which creates a SkyGallery album from a 4chan tread
// ==UserScript==
// @name 4chan to SkyGallery
// @namespace https://delivator.me
// @version 0.1
// @description User script which creates a SkyGallery album from a 4chan tread
// @author Delivator
// @match https://boards.4chan.org/*/thread/*
// @match https://boards.4channel.org/*/thread/*
// @grant none
// ==/UserScript==
module.exports = api => {
api.describeTask({
match: /vue-cli-service build && node deploy_skynet.js/,
description: "Build the project and upload it to skynet",
link: "https://github.com/Delivator/vue-cli-plugin-skynet"
})
api.describeTask({
match: /node deploy_skynet.js/,
description: "Upload to skynet (without building)",