Skip to content

Instantly share code, notes, and snippets.

View sharethewisdom's full-sized avatar
🙄

Bart De Roy sharethewisdom

🙄
View GitHub Profile
@sharethewisdom
sharethewisdom / youtube.user.js
Last active August 15, 2026 15:38
Youtube user script
// ==UserScript==
// @name Youtube
// @version 2026-08-16
// @description resets the UI language, playback speed (if music), adds keyboard navigation, ...
// @namespace https://gist.github.com/sharethewisdom/acee51dcf2a0399170fac0a119014a94/raw/f803cda49820a89e58b44a464cb4b793c160195d/youtube.user.js
// @author Bart De Roy
// @match https://www.youtube.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant GM_addStyle
// @grant GM_xmlhttpRequest
@sharethewisdom
sharethewisdom / .README.md
Last active May 30, 2026 12:10
SPA shop keyboard navigation userscripts

SPA shop keyboard navigation userscripts

Our attention budget in online shopping is limited. I hate spending too much time on commercial sites. Soon AI will interact with MCP servers on shops, which will be a different kind of nightmarre.

For now, this can save your sanity. Please take responsibility by protecting, maintaining and repairing what you own. Eventhough many sites offer mostly low-quality products, please don't buy crap. Please realise that shiny things could be cheap zamak or plastic, and that plastic extruded products are potentially much more brittle than they used to be 20 years ago, or that they're made from the wrong kind, and may not last when exposed to UV light. Also realize that filling your home with synthetic fabrics is a real fire hazzard.

So anyway, these are example userscripts for some commercial single-page application (SPA) sites, to:

  • navigate with the hjkl or arrow keys (for grid listings, use shift+left/right to paginate)
  • focus searchbar with "/"
@sharethewisdom
sharethewisdom / yt.feed.fix.user.js
Last active March 8, 2026 23:11
youtube user scripts
// ==UserScript==
// @name yt.feed.fix
// @namespace https://gist.github.com/sharethewisdom/0e92cddddd6a3c1750c9ceb5901a4447
// @version 2026-03-08
// @description resets the UI language
// @author You
// @match https://www.youtube.com/feed/subscriptions*
// @exclude https://www.youtube.com/watch?v=*
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com
// @grant none
@sharethewisdom
sharethewisdom / winevent-group.ahk
Created October 26, 2025 22:10
Demonstrates how to use Descolada's WinEvent class and ahk_group to minimize, restore, and close all members of the group when titlebar buttons are used. It also moves two members in the upper -, and lower half of the screen.
#Requires AutoHotkey v2.0
#SingleInstance Force
; https://www.autohotkey.com/boards/viewtopic.php?f=83&t=126932
; https://github.com/Descolada/AHK-v2-libraries/blob/main/Lib/WinEvent.ahk
#include <winevent>
GroupAdd("MyGroup","ahk_class Notepad ahk_exe notepad.exe")
WinEvent.MoveEnd(arrangeGroupedWindows.Bind("MyGroup"), "ahk_group MyGroup")
WinEvent.Minimize(groupEvent.Bind(WinMinimize,"MyGroup"),"ahk_group MyGroup")
WinEvent.Restore(groupEvent.Bind(WinRestore,"MyGroup"),"ahk_group MyGroup")
@sharethewisdom
sharethewisdom / coderdojo-registration.md
Last active November 9, 2025 13:38
Coderdojo Belgium: automatic registration of a single volunteer for the next event in a particular city through Eventbrite

Eventbrite Coderdojo Belgium volunteer registration

These simple userscripts automate registration for a single volunteer on the next dojo in a city.

If you're a volunteer coach just install and use it.

If you're a lead coach, and you want to register your volunteers, consider creating multiple firefox profiles and install the scripts in each of them to make this easier. Or, you could copy-paste the json of the volunteer's personal data prior to visiting the form. Set Tampermonkey config mode to advanced to see the json settings in the settings tab on the extension's editor page for the script eventbrite-checkout-coach.

If you're a parent or guardian, or an attendee, and you want to use this, it sould not be too hard to adapt this. You might want to just remove the "ticket-quantity-selector" if statement in eventbrite-checkout-coach to manually select a track, and modify it to add additional data if the attendee data is different from the person making the reservation. The

@sharethewisdom
sharethewisdom / 2dehands.user.js
Last active March 8, 2026 23:14
lazy attempt to remove 2dehands.be advertisements and buisiness account sales, and some javascript bloat
// ==UserScript==
// @name 2dehands
// @namespace https://gist.github.com/sharethewisdom/124f753c6a15b8322609b79340acba98/
// @version 2026-03-09
// @description lazy attempt to remove advertisements and buisiness account sales, and some javascript bloat
// @author You
// @match https://www.2dehands.be/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=2dehands.be
// @grant GM_addStyle
// @run-at document-start
@sharethewisdom
sharethewisdom / fix_vrtmax.user.js
Last active March 8, 2026 23:13
improved accessibility and user experience of the Theoplayer on VRTMAX
// ==UserScript==
// @name Fix vrtmax
// @namespace https://gist.github.com/sharethewisdom/43ca7b86e5d40289632ae5c8812260f5/
// @version 2025-11-18
// @description redirect watch pages to show episodes, focus the player when it appears or when exiting fullscreen, add useful player keyboard shortcuts
// @author You
// @match https://www.vrt.be/vrtmax/*
// @run-at document-start
// @icon https://www.google.com/s2/favicons?sz=64&domain=vrt.be
// @grant GM_getValue
@sharethewisdom
sharethewisdom / README.md
Last active March 26, 2025 10:48
.NET checkbox
dotnet.exe build
autohotkey.exe checkbox.ahk

checkbox

Keybase proof

I hereby claim:

  • I am sharethewisdom on github.
  • I am sharethewisdom (https://keybase.io/sharethewisdom) on keybase.
  • I have a public key whose fingerprint is 1734 B0BA F0E1 8F7F 3B59 4CC1 F313 FD1A 398F 37AD

To claim this, I am signing this object:

@sharethewisdom
sharethewisdom / README.md
Created March 14, 2023 18:16
GTK4 snippet test

snippet test

I struggle to get snippets working... I'm probably missing a lot of pieces in the code.

I tried to put latex.rng in $XDG_DATA_HOME/gtksourceview-5/snippets/.

requirements

$ sudo apt install gcc pkg-config libgtksourceview-5-dev