Skip to content

Instantly share code, notes, and snippets.

View dvingerh's full-sized avatar
💭
I may be slow to respond.

Dirk Vingerhoeds dvingerh

💭
I may be slow to respond.
View GitHub Profile
@dvingerh
dvingerh / discord.altmessagesendbutton.user.js
Created October 25, 2023 17:17
discord.altmessagesendbutton.user.js
// ==UserScript==
// @name Discord Add Send Button
// @description Discord Add Send Button
// @namespace Discord Add Send Button
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @require https://raw.githubusercontent.com/pie6k/jquery.initialize/master/jquery.initialize.min.js
// @match *://discord.com/*
// ==/UserScript==
const buttonHTML = `<div class="separator__8424b "><div class="send-button buttonContainer__9b459"><button aria-label="Send Message" type="button" disabled="" class="button__8d734 button_afdfd9 lookBlank__7ca0a colorBrand_b2253e grow__4c8a4"><div class="contents_fb6220 button_f0455c innerButton_debeee"><div style="opacity: 1; transform: none;" class="buttonWrapper__69593 buttonChild__7b90d disabled__74c03"><svg aria-hidden="true" role="img" class="sendIcon__461ff" width="16" height="16" viewBox="0 0 16 16"><path d="M8.2738 8.49222L1.99997 9.09877L0.349029 14.3788C0.250591 14.691 0.347154 15.0322 0.595581 15.246C0.843069 15.4597 1.19464 15.504
@dvingerh
dvingerh / discord.directvideoembed.user.js
Last active June 16, 2023 18:15
Discord Userscript: Embed MP4 and WebM videos in Discord. (Discord Direct Video Embed)
// ==UserScript==
// @name Discord Direct Video Embed
// @description Embed MP4 and WebM videos in Discord.
// @namespace Violentmonkey Scripts
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @match *://discordapp.com/*
// @grant GM_addStyle
// @grant GM_getResourceText
// ==/UserScript==
(function($) {
@dvingerh
dvingerh / mal.ratingnumber.user.js
Created August 5, 2022 16:16
MyAnimeList show rating number again
// ==UserScript==
// @name MyAnimeList Show Rating Number
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Add the reviewer's final rating to the rating verdict tag
// @author Cammy
// @match https://myanimelist.net/anime/*
// @match https://myanimelist.net/manga/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=myanimelist.net
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
@dvingerh
dvingerh / mpc-hc-keys-empty.reg
Last active May 7, 2022 10:21
Clear / empty all MPC-HC hotkeys
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\MPC-HC\MPC-HC\Commands2]
"CommandMod0"="969 1 0 \"\" 5 0 0 0"
"CommandMod1"="800 1 0 \"\" 5 0 0 0"
"CommandMod2"="801 1 0 \"\" 5 0 0 0"
"CommandMod3"="802 1 0 \"\" 5 0 0 0"
"CommandMod4"="976 1 0 \"\" 5 0 0 0"
"CommandMod5"="805 1 0 \"\" 5 0 0 0"
"CommandMod6"="806 1 0 \"\" 5 0 0 0"
@dvingerh
dvingerh / twitter.imagehelper.user.js
Last active January 5, 2022 13:54
Twitter Image Helper modifies image sources so that the best available image quality is always being used in tweets. Also adds a download button for images in tweets and redirects direct image links from Twitter to show the largest available size. Also: No more jpg-orig etc. image extensions when downloading!
// ==UserScript==
// @name Twitter Image Helper v2
// @namespace Twitter Image Helper v2
// @version 0.1
// @description Twitter Image Helper modifies image sources so that the best available image quality is always being used in tweets. Also adds a download button for images in tweets and redirects direct image links from Twitter to show the largest available size. Also: No more jpg-orig etc. image extensions when downloading!
// @author You
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @require https://raw.githubusercontent.com/pie6k/jquery.initialize/master/jquery.initialize.min.js
// @include *pbs.twimg.com/media/*
// @include *twitter.com*
@dvingerh
dvingerh / google.viewimage.user.js
Last active May 25, 2020 11:59
Google Images - View Image button
// ==UserScript==
// @name Google Images - View Image button
// @description Brings back the View Image button that Google has removed.
// @namespace Violentmonkey Scripts
// @grant GM_addStyle
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @require https://raw.githubusercontent.com/pie6k/jquery.initialize/master/jquery.initialize.min.js
// @include *google*
//
// ==/UserScript==
@dvingerh
dvingerh / discord.removemostusedemojis.user.js
Created February 4, 2020 21:27
Discord Remove Most Used Emojis
// ==UserScript==
// @name Discord Remove Most Used Emojis
// @version 1
// @description Discord Remove Most Used Emojis
// @namespace Violentmonkey Scripts
// @grant GM_addStyle
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @require https://gist.github.com/notcammy/a8b37bc2f49a76c30220d80fdd661429/raw/3148bcb32b9f0ce30cc62ee684eb60962051bcfa/jquery.initialize.js
// @match *://discordapp.com/*
// @match *://cdn.discordapp.com/*
@dvingerh
dvingerh / discord.quickdelete.user.js
Last active February 4, 2020 21:14
Discord Userscript: Adds functionality to delete messages faster by ctrl+right-clicking them. (Discord Quick Delete Messages)
// ==UserScript==
// @name Discord Quick Delete Messages
// @description Adds functionality to delete messages faster by ctrl+right-clicking them.
// @namespace Violentmonkey Scripts
// @grant GM_addStyle
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @require https://raw.githubusercontent.com/MichaelZelensky/jsLibraries/master/macKeys.js
// @match *://discordapp.com/*
// ==/UserScript==
var showPopup = false; //If set to true, it won't instantly delete the message but open the confirmation dialog instead
@dvingerh
dvingerh / discord.quickedit.user.js
Last active February 4, 2020 21:14
Discord Userscript: Adds functionality to edit messages by ctrl-clicking them. (Discord Quick Edit)
// ==UserScript==
// @name Discord Quick Edit Messages
// @description Adds functionality to edit messages by ctrl-clicking them
// @namespace Violentmonkey Scripts
// @grant GM_addStyle
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @require https://raw.githubusercontent.com/MichaelZelensky/jsLibraries/master/macKeys.js
// @match *://discordapp.com/*
// ==/UserScript==
@dvingerh
dvingerh / discord.rightclickcontextmenu.user.js
Last active February 4, 2020 21:13
Discord Right Click Context Menu
// ==UserScript==
// @name Discord Right Click Context Menu
// @description Discord Right Click Context Menu
// @namespace Discord Right Click Context Menu
// @version 12.17.2019.1
// @grant GM_addStyle
// @require http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js
// @require https://raw.githubusercontent.com/pie6k/jquery.initialize/master/jquery.initialize.min.js
// @require https://raw.githubusercontent.com/MichaelZelensky/jsLibraries/master/macKeys.js
// @match *://discordapp.com/*