Firefox extensions

From Arnout Engelen

Jump to: navigation, search

[edit] Extract stuff from webpage

var links = window._content.document.getElementsByTagName("link");
for (var x=0;x<links.length;x++)
{
  ... links[x].id ... .rel .href 
}

[edit] configure apache to install xpi's

AddType application/x-xpinstall .xpi

[edit] opening a link

such as a irc://foo link from the extension: maybe use

 window.open() 

or

 window._content.document.location = $url
Personal tools