Skip to content

Instantly share code, notes, and snippets.

@GoesuZuegs
GoesuZuegs / install.sh
Last active November 18, 2018 09:53
YouTube in the terminal
#!/bin/sh
if [ $EUID -ne 0 ]
then
echo "This script must be run as root!"
exit 1
fi
INSTALL_DIR=/opt/ytgo/
@GoesuZuegs
GoesuZuegs / hide-scrollbars.uc.js
Created June 11, 2018 14:52
Hide scrollbars completely in Firefox
(function () {
const css = `
scrollbar, scrollcorner, scrollbar thumb, scrollbar scrollbarbutton {
pointer-events: none !important;
-moz-appearance: none !important;
visibility: hidden !important;
}
`;
Components.utils.import("resource://gre/modules/Services.jsm");
const sss = Components.classes["@mozilla.org/content/style-sheet-service;1"].getService(Components.interfaces.nsIStyleSheetService);
@GoesuZuegs
GoesuZuegs / bookmarks-toolbar-auto-expand.uc.js
Last active January 15, 2020 21:13
A user script for Firefox, which opens bookmarks folders on the bookmarks toolbar when one hovers over them.
(function () {
if (window.location.href !== "chrome://browser/content/browser.xul") {
return;
}
const bookmarksToolbar = document.getElementById("PlacesToolbarItems");
if (!(bookmarksToolbar instanceof Element)) {
return;
}