This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AddonManager.getAddonsByTypes(["extension"], function (aAddons) { | |
var list = []; | |
aAddons.forEach(function (aAddon) { | |
if (aAddon.hidden == false) { | |
list.push(aAddon.name + ", E10 compatible: " + | |
(aAddon.multiprocessCompatible ? "Yes" : "No")); | |
} | |
}); | |
alert(list.join("\n")); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document domain("jira.xxxxx") { | |
#dashboard > .vertical.tabs | |
{ | |
width: 50px !important; | |
} | |
#dashboard .aui-page-header-main | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function zoomImage(image, amt) { | |
if (image.initialHeight == null) { | |
/* avoid accumulating integer-rounding error */ | |
image.initialHeight=image.height; | |
image.initialWidth=image.width; | |
image.scalingFactor=1; | |
} | |
image.scalingFactor *= amt; | |
image.width = image.scalingFactor*image.initialWidth; | |
image.height = image.scalingFactor*image.initialHeight; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT b.title, p.url, count(*) ile | |
FROM moz_places p | |
JOIN moz_bookmarks b ON p.id = b.fk | |
WHERE b.title is not null | |
GROUP BY p.url | |
HAVING count(1) > 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Macro title: Attachment Count | |
## Macro has a body: Y or N (N) | |
## | |
## Date created: 14/07/2015 | |
## Created by: Krzysztof Głębowicz | |
<table> | |
<tr class="page-metadata"> | |
<td>Załączniki</td> | |
<td><b>$attachmentManager.getAttachments($content).size()</b></td></tr> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document url("about:newtab") { | |
#newtab-grid > .newtab-cell{ | |
height: 125px; | |
width: 220px; | |
} | |
#newtab-grid{ | |
height: unset !important; | |
max-height: unset !important; |