Setup help

7 views
Skip to first unread message

ivlivs

unread,
Dec 11, 2009, 4:55:01 PM12/11/09
to Noise (Firefox Extension)
Hello, is it possible to use this extension to play a sound when a
specified text appears in the HTML code? If yes, how?

Thanks,
Giulio

bootleq

unread,
Dec 11, 2009, 9:08:19 PM12/11/09
to Noise (Firefox Extension)
Sorry I only found ways to test it when page loaded.

Find text, with browser's find function:
DOMContentLoaded&gBrowser.contentWindow.find('Firefox')

Find in innerHTML code:
DOMContentLoaded&gBrowser.contentDocument.body.innerHTML.indexOf
('Firefox')>-1

Both are window events.

ivlivs

unread,
Dec 12, 2009, 3:41:07 AM12/12/09
to Noise (Firefox Extension)
Works perfectly. Thank you!
Reply all
Reply to author
Forward
0 new messages