[Greasemonkey] XML files
Chris Hayes
chayes at antenna.nl
Mon Oct 2 12:34:51 EDT 2006
thg2 at karate-muellheim.de wrote:
> Hi,
>
> is it possible to write GM scripts that are executed when FF displays an XML
> file?
>
> Best regards,
> Thomas
>
absolutely. javascript has several ways to find out what sort of
document it is (maybe doctype as in php, you could look at file
extension, see if there is a document identifying tag) and if that type
seems to be xml, the code is executed. an if(){}.
More information about the Greasemonkey
mailing list