Skip to content

Instantly share code, notes, and snippets.

@JellyWX
Last active April 18, 2024 08:08
Show Gist options
  • Save JellyWX/bb5cf179d1813aa02474a2ce13e5cd6f to your computer and use it in GitHub Desktop.
Save JellyWX/bb5cf179d1813aa02474a2ce13e5cd6f to your computer and use it in GitHub Desktop.
Tampermonkey Userscripts
// ==UserScript==
// @name Remove summarizer
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://search.brave.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=brave.com
// @grant none
// ==/UserScript==
function() {
'use strict';
const elements = [document.getElementById('summarizer'), document.getElementById('codellm')];
for (const el of elements) {
if (el !== null) {
el.style.display = 'none';
}
}
// Hide annoying LLM thing
document.head.innerHTML += `<style>
#search-page > div:not(.column-layout) {
display: none;
}
</style>`;
})();
// ==UserScript==
// @name Debloat SE
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://stackoverflow.com/questions/*
// @match https://superuser.com/questions/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=superuser.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
document.querySelector('#left-sidebar').remove();
document.querySelector('a[href="/questions/ask"]').remove();
document.querySelectorAll('#sidebar > :not(.sidebar-related)').forEach((el) => el.remove());
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment