Skip to content

Instantly share code, notes, and snippets.

@TinyRaindrop
TinyRaindrop / ShowMenubarOnHover.css
Last active March 13, 2019 20:22
Firefox userChrome.css style: show menubar when hovering the top pixel of toolbar.
/* Show menubar on toolbar hover */
#toolbar-menubar {
-moz-window-dragging: no-drag !important;
}
/* [autohide="false] means that MenuBar is enabled in UI setting */
#toolbar-menubar[autohide="false"]:not(:hover) {
min-height: 1px !important;
}
@TinyRaindrop
TinyRaindrop / activity-stream.css
Created March 15, 2019 19:22
Firefox 65 original activity-stream.css file
@charset "UTF-8";
/* This is the windows variant */
html {
box-sizing: border-box; }
*,
*::before,
*::after {
box-sizing: inherit; }
/*
* URLbar
*/
#urlbar .urlbar-input-box {
text-align: center;
margin: auto !important;
}
/* Remove placeholder text in the address bar */
/* Force bgcolor to prevent transparent tabbar | Win8 */
#TabsToolbar {
background-color: var(--lwt-accent-color) !important;
}
#navigator-toolbox {
margin-top: calc(-40px - var(--tab-min-height)) !important;
transition: all .2s ease .2s !important;
z-index: 1;
}
@TinyRaindrop
TinyRaindrop / user.js
Last active December 23, 2019 19:33
Firefox ghacks-based user.js
/* *** GHACKS SECTION *** */
/* 0105a: disable Activity Stream telemetry ***/
user_pref("browser.newtabpage.activity-stream.feeds.telemetry", false);
user_pref("browser.newtabpage.activity-stream.telemetry", false);
user_pref("browser.newtabpage.activity-stream.telemetry.ping.endpoint", "");
/* 0105b: disable Activity Stream Snippets
* Runs code received from a server (aka Remote Code Execution) and sends information back to a metrics server
* [1] https://abouthome-snippets-service.readthedocs.io/ ***/
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#SingleInstance force
#IfWinActive ahk_exe League of Legends.exe
End::
Send {Enter}
@TinyRaindrop
TinyRaindrop / filedate.ps1
Created January 17, 2022 20:20
Rewrite file&folder dates to their parent's creation
# Script to change Created and Modified dates of files and folders my music library.
# Everything in Album\ (recursive) is set to Album's creation date.
# Every Artist\file.* is set to Artist's creation date.
# Supported folder structure:
# Root\
# | Artist1\
# | Album1\files
# | Album2\folder\files
# | files