Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block TyDraniu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
TyDraniu / about-newtab.css
Last active Aug 29, 2015
about:newtab mod
View about-newtab.css
@namespace url(;
@-moz-document url("about:newtab") {
#newtab-grid > .newtab-cell{
height: 125px;
width: 220px;
height: unset !important;
max-height: unset !important;
View attachment-count.html
## Macro title: Attachment Count
## Macro has a body: Y or N (N)
## Date created: 14/07/2015
## Created by: Krzysztof Głębowicz
<tr class="page-metadata">
View duplicate-Firefox-bookmarks.sql
SELECT b.title, p.url, count(*) ile
FROM moz_places p
JOIN moz_bookmarks b ON =
WHERE b.title is not null
GROUP BY p.url
HAVING count(1) > 1
View Zoom-img-in.js
function zoomImage(image, amt) {
if (image.initialHeight == null) {
/* avoid accumulating integer-rounding error */
image.scalingFactor *= amt;
image.width = image.scalingFactor*image.initialWidth;
image.height = image.scalingFactor*image.initialHeight;
View jira-dashboard.css
@namespace url(;
@-moz-document domain("jira.xxxxx") {
#dashboard > .vertical.tabs
width: 50px !important;
#dashboard .aui-page-header-main
TyDraniu / is-multiprocess-compatible.js
Created Mar 28, 2017
Checks the multiprocess compatibility of Firefox's addons
View is-multiprocess-compatible.js
AddonManager.getAddonsByTypes(["extension"], function (aAddons) {
var list = [];
aAddons.forEach(function (aAddon) {
if (aAddon.hidden == false) {
list.push( + ", E10 compatible: " +
(aAddon.multiprocessCompatible ? "Yes" : "No"));
TyDraniu / showAsPrint.js
Created Feb 27, 2019 — forked from jscher2000/showAsPrint.js
Emulate print media in Firefox 62 (userscript work in progress)
View showAsPrint.js
// For Firefox's Web Console, creates the functions showAsPrint() and undoShowAsPrint()
// to roughly emulate print media and revert
function showAsPrint(){
var docSS = document.styleSheets, ss, oldMedia, newMedia, rules;
var p2s = function(media){
if (media.indexOf('all') > -1) return media; //no need to change
if (media == 'print') return 'all, wasprint'; //show on screen, too
if (media.indexOf('print') > -1 && media.indexOf('screen') > -1) return media; //no need to change
if (media == 'screen') return 'wasscreen'; //hide these rules
if (media.indexOf('screen') > -1) return media.replace('screen', 'wasscreen'); //hide these rules
You can’t perform that action at this time.