Skip to content

Instantly share code, notes, and snippets.

@kmaglione
kmaglione / pentadactyl-1.0rc1.diff
Created December 22, 2011 06:13
Pentadactyl 1.0rc1 code changes
This file has been truncated, but you can view the full file.
diff --git a/common/bootstrap.js b/common/bootstrap.js
--- a/common/bootstrap.js
+++ b/common/bootstrap.js
@@ -4,52 +4,47 @@
// given in the LICENSE.txt file included with this file.
//
// See https://wiki.mozilla.org/Extension_Manager:Bootstrapped_Extensions
// for details.
const NAME = "bootstrap";
/*
* Copyright (c) 2010 by Kris Maglione <maglione.k at Gmail>
*
* This work is licensed for reuse under the MIT license.
* See the included LICENSE file for details.
*/
/* use strict */;
var Cc = Components.classes;
var Ci = Components.interfaces;
#!/usr/bin/env python
import io
import os
from queue import *
import subprocess
import sys
from threading import *
import traceback
from util import *
import os
import signal
import subprocess
def call(*args, **kwargs):
background = kwargs.pop('background', False)
input = kwargs.pop('input', None)
stdin = subprocess.PIPE if input else None
p = subprocess.Popen(args, stdin=stdin,
SWOOSTYhighlightSearchTerms: function (doc, searchText) {
var searchArray = [searchText, searchText.replace(/-/g, " "), searchText.replace(/ /g, "-")];
if (!doc.body || typeof (doc.body.innerHTML) == "undefined") {
return false;
}
var bodyText = doc.body.innerHTML;
for (var i = 0; i < searchArray.length; i++) {
bodyText = this.SWOOSTYdoHighlight(bodyText, searchArray[i], this.mHighlightColours[this.mHighlightColourIndex]);
}
var cmd$ = new shellCmd();
function shellCmd() {
function runShellCommand(cmd,args) {
var file = Components.classes["@mozilla.org/file/local;1"]
.createInstance(Components.interfaces.nsILocalFile);
file.initWithPath(cmd);
if(file.exists()) {
var process = Components.classes["@mozilla.org/process/util;1"]
.createInstance(Components.interfaces.nsIProcess);
process.init(file);
var win;
util.yieldable(function () {
outer:
while (!win) {
let _NET_WM_NAME = atom("_NET_WM_NAME");
let UTF8_STRING = atom("UTF8_STRING");
let title = window.document.title, mytitle = "{dactyl-window:" + Date.now() + "}";;
try {
for (let i in util.range(1, 1000)) {
We can't match your included version of <library> to the checksum of any known version. Please include only releases of libraries obtained from official sources in their original, unmodified files. Please note that third party CDNs are not considered official sources for this purpose.
let origSetToolbarVisibility = setToolbarVisibility;
setToolbarVisibility = function setToolbarVisibility(elem, visible) {
let res = origSetToolbarVisibility(elem, visible);
if (elem.id == "toolbar-menubar")
doStuff(visible);
return res;
};
#chronicleTreeSites.big treechildren::-moz-tree-row {
height: 100px;
}
#chronicleTreeSites.small treechildren::-moz-tree-row {
height: 20px;
}