Skip to content

Instantly share code, notes, and snippets.

@plu5
plu5 / devsansbarre.user.js
Last active February 4, 2026 23:54
developpez.net userscript pour cacher la barre latérale. Lien d'installation (nécessite Grease/Tamper/Violentmonkey): https://gist.githubusercontent.com/plu5/f5205ffbbe418ce839c813df826c345f/raw/devsansbarre.user.js
// ==UserScript==
// @name developpez.net sans barre latérale
// @namespace Violentmonkey Scripts
// @match https://www.developpez.net/*
// @grant none
// @version 1.0.0
// @author plu5
// @homepageURL https://gist.github.com/plu5/f5205ffbbe418ce839c813df826c345f
// @updateURL https://gist.githubusercontent.com/plu5/f5205ffbbe418ce839c813df826c345f/raw/devsansbarre.user.js
// @downloadURL https://gist.githubusercontent.com/plu5/f5205ffbbe418ce839c813df826c345f/raw/devsansbarre.user.js
@plu5
plu5 / blwb.user.js
Last active February 4, 2026 23:38
Bilibili login wall blocker userscript. Install link (requires Grease/Tamper/Violentmonkey browser extension): https://gist.githubusercontent.com/plu5/acac697b0bc172d4905179f284bffdf1/raw/blwb.user.js
// ==UserScript==
// @name Bilibli login wall blocker (blwb)
// @namespace Violentmonkey Scripts
// @match https://www.bilibili.com/*
// @grant unsafeWindow
// @version 2.0.2
// @author plu5
// @homepageURL https://gist.github.com/plu5/acac697b0bc172d4905179f284bffdf1
// @updateURL https://gist.githubusercontent.com/plu5/acac697b0bc172d4905179f284bffdf1/raw/blwb.user.js
// @downloadURL https://gist.githubusercontent.com/plu5/acac697b0bc172d4905179f284bffdf1/raw/blwb.user.js
@plu5
plu5 / forvowb.user.js
Last active February 5, 2026 00:05
Forvo login wall blocker userscript. Install link (requires Grease/Tamper/Violentmonkey browser extension): https://gist.githubusercontent.com/plu5/c6d54d88b1c0b252b00c081b8cb67db6/raw/forvowb.user.js
// ==UserScript==
// @name Forvo login wall blocker
// @namespace Violentmonkey Scripts
// @match https://forvo.com/*
// @grant none
// @version 1.0.0
// @author plu5
https://gist.github.com/plu5/c6d54d88b1c0b252b00c081b8cb67db6
// @homepageURL https://gist.github.com/plu5/c6d54d88b1c0b252b00c081b8cb67db6
// @updateURL https://gist.githubusercontent.com/plu5/c6d54d88b1c0b252b00c081b8cb67db6/raw/forvowb.user.js
@plu5
plu5 / pintwb.user.js
Last active February 5, 2026 00:15
Pinterest login wall blocker userscript. Install link (requires Grease/Tamper/Violentmonkey browser extension): https://gist.githubusercontent.com/plu5/fd7f2d261b44539402d539cd044e8d4a/raw/pintwb.user.js
// ==UserScript==
// @name Browse your interests without registration
// @name:it Naviga i tuoi interessi senza registrazione
// @author Andrea Lazzarotto, plu5
// @homepageURL https://gist.github.com/plu5/fd7f2d261b44539402d539cd044e8d4a
// @updateURL https://gist.githubusercontent.com/plu5/fd7f2d261b44539402d539cd044e8d4a/raw/pintwb.user.js
// @downloadURL https://gist.githubusercontent.com/plu5/fd7f2d261b44539402d539cd044e8d4a/raw/pintwb.user.js
// @namespace http://andrealazzarotto.com/
// @description Find more ideas on the web without login/registration
// @description:it Trova altre idee sul web senza accedere o registrarti
@plu5
plu5 / ublock-static-filters-plu5.txt
Last active February 5, 2026 00:19
uBlock Origin filters (filter out mind pollution and annoying floating elements)
! uBlock Origin filters
! Youtube sidebar, pause overlay, and endscreen suggestions
www.youtube.com##ytd-watch-next-secondary-results-renderer.ytd-watch-flexy.style-scope
www.youtube.com##.ytp-show-tiles.ytp-endscreen-paginate.videowall-endscreen.ytp-player-content.html5-endscreen
www.youtube.com##.ytp-show-tiles.videowall-endscreen.ytp-player-content.html5-endscreen
www.youtube.com##.ytp-pause-overlay-container
www.youtube.com##.ytp-fullscreen-grid-stills-container
! StackExchange sidebar suggestions
@plu5
plu5 / ntfs3gcr.py
Created February 11, 2025 12:17
NTFS-3G creation date of a file in Python
import subprocess
from datetime import datetime, timezone
def get_ntfs3g_file_creation_date(path):
# type: (str) -> str
c = subprocess.run([
'getfattr', '--only-values', '--name=system.ntfs_crtime', path
], capture_output=True)
# Convert getfattr output's little-endian bytes to int, and convert
@plu5
plu5 / toggle_kbd.sh
Created January 14, 2025 01:26
Linux X toggle keyboard script
#!/bin/bash
# use `xinput list` to check your keyboard name. this one is for laptop internal keyboard
deviceName="AT Translated Set 2"
builtInId=$(xinput list | grep "$deviceName" | sed 's/^.*id=//' | sed 's/\t.*//')
case $1 in
disable)
xinput disable $builtInId
echo "Keyboard '${deviceName}' disabled"
@plu5
plu5 / line_edit.py
Last active December 11, 2022 20:35
A widget for PyQt5; QPlainTextEdit subclass which mimics QLineEdit. | Adapted from ssokolow’s OneLineSpellTextEdit: https://gist.github.com/ssokolow/abb20a30415fa4debce912c38060ca6a
"""QPlainTextEdit subclass which mimics QLineEdit. The idea is to make it
hotswappable for QLineEdit with no changes needed, so that you can have a
QLineEdit without its inherent limitations, like not being able to modify the
undo behaviour, not being able to use QCursor, etc.
Adapted from ssokolow’s OneLineSpellTextEdit:
https://gist.github.com/ssokolow/abb20a30415fa4debce912c38060ca6a
NOTE:
* textEdited probably works differently from QLineEdit’s textEdited, because I
am not sure yet how to replicate it exactly. For now it emits when the text
@plu5
plu5 / thl-buddenbrooks.py
Created April 10, 2022 09:49
Reddit tally number of comments on a list of threads per user using PRAW [yet yet yet yet again]
import praw
from collections import defaultdict
discussion_threads = \
["https://www.reddit.com/r/thehemingwaylist/comments/rthfhy/buddenbrooks_chapter_1/",
"https://www.reddit.com/r/thehemingwaylist/comments/ru7p9c/buddenbrooks_chapter_2/",
"https://www.reddit.com/r/thehemingwaylist/comments/rv0o67/buddenbrooks_thomas_mann_chapter_3_discussion/",
"https://www.reddit.com/r/thehemingwaylist/comments/rvsc05/buddenbrooks_thomas_mann_chapter_4_discussion/",
"https://www.reddit.com/r/thehemingwaylist/comments/rwluwr/buddenbrooks_thomas_mann_chapter_5_discussion/",
"https://www.reddit.com/r/thehemingwaylist/comments/rxdycb/buddenbrooks_thomas_mann_chapter_6/",
@plu5
plu5 / yodq.py
Created December 22, 2021 01:18
Reddit tally number of comments on a list of threads per user using PRAW [yet yet yet again]
import praw
from collections import defaultdict
discussion_threads = \
["https://www.reddit.com/r/yearofdonquixote/comments/ko1iws/don_quixote_volume_1_chapter_1/",
"https://www.reddit.com/r/yearofdonquixote/comments/kp9k3b/don_quixote_volume_1_chapter_2/",
"https://www.reddit.com/r/yearofdonquixote/comments/kqm5jk/don_quixote_volume_1_chapter_3/",
"https://www.reddit.com/r/yearofdonquixote/comments/ks194a/don_quixote_volume_1_chapter_4/",
"https://www.reddit.com/r/yearofdonquixote/comments/ktfu6a/don_quixote_volume_1_chapter_5/",
"https://www.reddit.com/r/yearofdonquixote/comments/kur1nv/don_quixote_volume_1_chapter_6/",