[Conkeror] numberedlinks filtering

Mark Eichin eichin at gmail.com
Sun Dec 2 11:49:35 PST 2007


I've been using conkeror on an EEEpc a bunch lately, which is a
distinctly underpowered box, so I'd like to have numberedlinks not
even trigger on some link-heavy pages (which it isn't going to be that
useful on anyway.)  In particular, hiveminder (task.hm/hiveminder.com)
which is a *very* link-heavy page - but once I have the hook I might
as well turn it off for gmail and wunderground (more because it causes
 layout problems, there.)

For now I'm using

saved_numberedlinks_resize = numberedlinks_resize
function numbered_links_filter(cont) {
    url = cont.document.commandDispatcher.focusedWindow.location.href;
    alert("NLF: " + url);
    if (url.match("hiveminder.com")) { return; }
    if (url.match("wunderground.com")) { return; }
    if (url.match("mail.google.com")) { return; }
    return saved_numberedlinks_resize (cont);
}

numberedlinks_resize = numbered_links_filter

but this isn't working on multiple m-x reinit's; I'd modified
nl_document_observer instead but that's only one triggering case, not
all of them.  Is this at least the right approach? Am I just confusing
javascript too much with other languages and I should patch
numberedlinks_resize directly in numberedlinks.js?

-- 
_Mark_ <eichin at thok.org> <eichin at gmail.com>


More information about the Conkeror mailing list