Skip to content

Instantly share code, notes, and snippets.

View nmaier's full-sized avatar
😨
I may be slow to respond.

Nils Maier nmaier

😨
I may be slow to respond.
View GitHub Profile
@nmaier
nmaier / override+apply-sample.js
Created January 2, 2011 18:22
Complete but untested solution incl. the signature replication
(function() {
let _old = XULBrowserWindow.setOverLink;
try {
if (Services.vc.compare(Services.appinfo.platformVersion, '2.0.*') < 0) {
// moz 2.0
XULBrowserWindow.setOverLink = function(url, anchorElt) {
try {
if (NOReferrerToNOReferrerFrom.shouldDispatchOverLink) {
NOReferrerToNOReferrerFrom.dispatchEvent("onOverLink", url);
}
@nmaier
nmaier / refcontrol-moz2.diff
Created December 23, 2010 07:06
Minimal patch to support Firefox 4
--- components/refcontrolComp.js Mon Jan 19 23:26:36 1970
+++ components/refcontrolComp.js Mon Jan 19 23:26:36 1970
@@ -1,7 +1,7 @@
-
-var refcontrolObserver = {
+function refcontrolObserver() {}
+refcontrolObserver.prototype = {
bEnabled: true,
aRefActions: {},