Skip to content

Instantly share code, notes, and snippets.

@soulhotel
soulhotel / gist:75e02e966ce4f406a9ad920334eb9d96
Last active February 23, 2024 01:15
firefox css, custom UBlock Origin icon + throw it inside the URL bar
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'tooltiptext' is responsive to toggling Ublock on and off.
if you're reading this you can figure out the rest.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
#ublock0_raymondhill_net-BAP image{
list-style-image: url("ubon.png") !important;
}
#ublock0_raymondhill_net-BAP[tooltiptext="uBlock Origin (off)"] image{
list-style-image: url("uboff.png") !important;
}
@soulhotel
soulhotel / gist:efff3fc64f1871515498326b953969d3
Last active March 9, 2024 08:02
Firefoxcss, customize right click menu (colorize context menu)
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
So you want to colorize your right click menu?
context menu background color
context menu border color (sync border color with background - no ugly border)
text color
hovered item color
last line targets the elements submenus
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
@soulhotel
soulhotel / gist:dff6904a2991ff5639a7313dad13505e
Last active February 23, 2024 03:09
Firefox CSS, No More RED Youtube
@-moz-document domain("youtube.com") {
yt-icon.ytd-topbar-logo-renderer,
yt-icon.ytd-logo {
fill-opacity: 0;
background: url(chrome/yt.png) center center/100% no-repeat !important;
max-width: 100%;
max-height: 100px;
position: relative !important;}
.ytp-swatch-background-color { background-color: #fffd80 !important; }
@soulhotel
soulhotel / gist:95828dea6f3f2a2a7fee365e1dfda1e6
Last active February 24, 2024 19:54
minmaxclose buttons that will are movable and will fit your customization, firefox css
/* get extension */
/* https://addons.mozilla.org/en-US/firefox/addon/close-minimize-and-maximize/ */
/* this changes the icon for the extension to a simple X */
#_c5cca7ac-6287-4706-b3a1-b91e9dc4932e_-BAP image{
list-style-image: url("close.png") !important;}
/* remove your existing titlebar buttons */
.titlebar-button, .titlebar-buttonbox-container {display: none !important;} /*JUST TAKE IT ALL OUT*/
@soulhotel
soulhotel / gist:bf890d7023636ecfeca3db6690a9fd2e
Last active February 25, 2024 14:07
hide EVERYTHING... on the nav bar, firefox css
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
/*refer to video below*/
/* i wanted to hide every button on the nav bar, unless the nav bar is hovered.. simple right?..
first, to exclude key buttons. min, max, close, new window, fullscreen, ☰ Menu button, ublock, sidebery.
this is a list of what will NOT be affected. url bar is uneffected. feel free to modify. */
toolbarbutton:not([id="minimize_dhanush_com-BAP"], [id="close_dhanush_com-BAP"],
[id="new-window-button"], [id="fullscreen-button"], [id="nav-bar-overflow-button"],
[class="titlebar-button titlebar-min"], [class="titlebar-button titlebar-max"],
@soulhotel
soulhotel / gist:b65294053bd4da3272c58686cad427c3
Last active February 28, 2024 08:42
BackupFox for Windows OS (backup your UserChrome Profiles with one click)
simple .bat application that will copy your userchrome profile from its main location to a backup location.
this cuts out the need for downloading another application
or having to dig through file explorer to copy paste and sort your info
simply download this bat or make it paste the text below in notepad
change the name in the file to your Windows Name and backup location
save it as a .bat file
/* put inside userContent.css
or you can link to it for organization
@import url(reddit.css);
*/
@-moz-document domain(reddit.com) {
._31N0dvxfpsO6Ur5AKx4O5d,
._3ozFtOe6WpJEMUtxDOIvtU,
._1gVVmSnHZpkUgVShsn7-ua,
@soulhotel
soulhotel / userchrome.md
Last active March 12, 2024 03:42
userChrome4dummies

Enable userChrome

  • Type in URL BAR about:config
  • skip the warning, continue
  • Type toolkit.legacyUserProfileCustomizations.stylesheets in page search bar
  • Double click false, It should stay on true

  • Type about:support in URL BAR
  • Click on Profile Folder Button. This is your current Firefox user Profile.
@soulhotel
soulhotel / userChrome.css
Last active July 16, 2024 14:35
Method for stylizing the context menu (Firefox CSS)
/* ----------------------------------------------------------
Styling Firefoxs context (right-click) menu
- this will target all context menus, including the menubar, and drop downs.
- If you want this to only apply to the context menu activated within webpages you can specify it, such as: #contentAreaContextMenu
-----------------------------------------------------------*/
/*
Using your own defined variables makes switching styles/colors much easier to manage
*/
#!/bin/sh
# Save the current theme so the user can revert back to it with the uninstall.sh
current_theme=$(gsettings get org.gnome.desktop.interface gtk-theme)
# Print the current theme (optional)
# echo "Current theme: $current_theme"
# Write the current theme into uninstall.sh using a here-document with variable interpolation
cat <<EOL > uninstall.sh