Use this page to experiment with the wiki. (Just don't delete this text; otherwise people won't know the purpose of the page.)
injectCSS( CSS ); Since version 1.0
Injects a Cascading Style Sheet into the current page.
This method is most beneficially used in conjunction with the readfile() method. Note that this method is intended for an on demand application of CSS code only, do not use it in an event based manner. Make use of the userContent.css file to permanently apply your own styles to the documents you view.
|CSS||YES||STRING||CSS code||The Cascading Style Sheet code to be injected.|
injectJS( JS ); Since version 1.0
injectJS( JS [, location ]); Since version 1.5
|location||NO(1)||PREDEFINED||alltabs(2)||Address all tabs in the current window.|
|frame||Address the current frame only.|
(1) When omitted, the specified code is injected into the current document which may be a frame set. So, subframes have to be handled by the injected code itself. Same when injecting into all tabs.
(2) For version 1.5