Skip to content

Instantly share code, notes, and snippets.

@Aran-Fey
Aran-Fey / SOchat_ping_volume_slider.user.js
Last active May 12, 2022 22:32
Click the speaker icon (next to the "all rooms" button) to bring up the volume slider.
// ==UserScript==
// @name SOchat ping volume slider
// @description Adds a slider that lets you adjust the volume of the ping notification sound
// @version 1.0
// @author Paul Pinterits
// @match *://chat.stackoverflow.com/rooms/*
// @grant GM.getValue
// @grant GM.setValue
// @namespace Aran-Fey
// @require https://github.com/Aran-Fey/userscript-lib/raw/60f9b285091e93d3879c7e94233192b7ab370821/userscript_lib.js
// ==UserScript==
// @name StackExchange hide new user's questions
// @description Hides questions from 1 rep users
// @version 1.2.5
// @author Paul Pinterits
// @include /^https?://(meta\.)?(stackoverflow|serverfault|superuser|(.*\.)?stackexchange)\.com(/questions(/tagged/.*)?)?/?$/
// @namespace Aran-Fey
// @require https://github.com/Aran-Fey/userscript-lib/raw/60f9b285091e93d3879c7e94233192b7ab370821/userscript_lib.js
// @require https://github.com/Aran-Fey/SE-userscript-lib/raw/763c94661583ca88491ab6c0616d1a5665224129/SE_userscript_lib.js
// @grant none
@Aran-Fey
Aran-Fey / SE_hide_user_posts.user.js
Last active June 11, 2020 21:33
A userscript that hides all answers and comments from certain users on StackOverflow. Currently, the user ids of the blocked users must be edited directly in the script's source code.
// ==UserScript==
// @name StackExchange hide user posts
// @description Hides all comments and answers from blocked users
// @version 1.3.8
// @author Paul Pinterits
// @include /^https?://(meta\.)?(stackoverflow|serverfault|superuser|(.*\.)?stackexchange)\.com/questions(/tagged/.*)?$/?/
// @namespace Aran-Fey
// @require https://github.com/Aran-Fey/userscript-lib/raw/ca6999d1bac2494421b70286f74d7a9a9ba636e7/userscript_lib.js
// @require https://github.com/Aran-Fey/SE-userscript-lib/raw/bf77f40b25d7fa88a6c3f474390c858446154ec2/SE_userscript_lib.js
// @grant none
@Aran-Fey
Aran-Fey / SE_copy_code_to_clipboard.user.js
Last active June 11, 2020 21:33
A userscript for StackExchange that adds a "copy to clipboard" button to every code block. Hovering over the bottom right corner of a code block makes the button appear.
// ==UserScript==
// @name StackExchange copy code to clipboard
// @description Adds a "copy to clipboard" button to each code block
// @version 1.0.10
// @author Paul Pinterits
// @include *://*.stackexchange.com/questions/*
// @include *://meta.serverfault.com/questions/*
// @include *://meta.stackoverflow.com/questions/*
// @include *://meta.superuser.com/questions/*
// @include *://serverfault.com/questions/*
@Aran-Fey
Aran-Fey / SE_timeline_link.user.js
Last active June 11, 2020 21:33
A userscript for StackExchange that adds a link to the question's timeline below the question.
@Aran-Fey
Aran-Fey / always_python_3_docs.user.js
Last active December 17, 2019 21:08
Ever visited the python 2 documentation on accident? Ever got linked to the python 3.2 docs by google? Install this userscript to be automatically redirected to the version 3 docs whenever you visit docs.python.org.
// ==UserScript==
// @name always python 3 docs
// @description Automatically redirects from python 2 or python 3.x documentation to the latest python 3 documentation
// @version 1.3.4
// @author Paul Pinterits
// @include /https?://docs\.python\.org/[\d.]+/.*/
// @grant none
// @run-at document-start
// @updateURL https://gist.github.com/Aran-Fey/ecb80a7d3b3a955c9841bd6bea60d515/raw/always_python_3_docs.user.js
// @downloadURL https://gist.github.com/Aran-Fey/ecb80a7d3b3a955c9841bd6bea60d515/raw/always_python_3_docs.user.js
@Aran-Fey
Aran-Fey / python_glossary_permalinks.user.js
Last active October 17, 2019 15:06
Adds clickable link anchors to the python glossary
@Aran-Fey
Aran-Fey / SO_documentation_links.user.js
Last active October 16, 2019 15:04
A userscript that automatically turns text surrounded by quotation marks like ?foo? or ?foo.bar? into links to the documentation for "foo" or "foo.bar". A short user manual can be found in the code.
// ==UserScript==
// @name StackOverflow auto edit
// @description Automatically detects low quality questions and attempts to improve them
// @version 1.1.11
// @author Paul Pinterits
// @include *://*.stackexchange.com/questions/*
// @include *://meta.serverfault.com/questions/*
// @include *://meta.stackoverflow.com/questions/*
// @include *://meta.superuser.com/questions/*
// @include *://serverfault.com/questions/*
@Aran-Fey
Aran-Fey / SOchat_mcve_shortcut.user.js
Last active July 3, 2019 14:46
Userscript that enables the [mcve] shortcut in the StackOverflow chat
// ==UserScript==
// @name SOchat [mcve] shortcut
// @description Enables the [mcve] shortcut in StackOverflow chat
// @version 1.1.3
// @author Paul Pinterits
// @include *://chat.stackoverflow.com/rooms/*
// @grant none
// @updateURL https://gist.github.com/Aran-Fey/e5a3fbd5de70d093e7b490ad46117819/raw/SOchat_mcve_shortcut.user.js
// @downloadURL https://gist.github.com/Aran-Fey/e5a3fbd5de70d093e7b490ad46117819/raw/SOchat_mcve_shortcut.user.js
// ==/UserScript==