javascript Programming Glossary: components.classes
Using a local file as a data source in JavaScript http://stackoverflow.com/questions/13428532/using-a-local-file-as-a-data-source-in-javascript 'UniversalXPConnect' var ios Components.classes @mozilla.org network io service 1 .getService Components.interfaces.nsIIOService.. 'UniversalXPConnect' var foStream Components.classes @mozilla.org network file output stream 1 .createInstance.. this.fptr 0x02 0x08 0x20 0666 0 var converter Components.classes @mozilla.org intl converter output stream 1 .createInstance..
Altering HTTP Responses in Firefox Extension http://stackoverflow.com/questions/1695440/altering-http-responses-in-firefox-extension channel register function var observerService Components.classes @mozilla.org observer service 1 .getService Components.interfaces.nsIObserverService.. response false unregister function var observerService Components.classes @mozilla.org observer service 1 .getService Components.interfaces.nsIObserverService.. aStream aSourceOffset aLength var scriptableInputStream Components.classes @mozilla.org scriptableinputstream 1 .createInstance Components.interfaces.nsIScriptableInputStream..
Get Windows username with JavaScript? http://stackoverflow.com/questions/2968690/get-windows-username-with-javascript This does the trick on Windows function getUser return Components.classes @mozilla.org process environment 1 .getService Components.interfaces.nsIEnvironment..
Copy and paste clipboard in JavaScript. or jQuery http://stackoverflow.com/questions/3475293/copy-and-paste-clipboard-in-javascript-or-jquery 'UniversalXPConnect' var clip Components.classes '@mozilla.org widget clipboard 1' .createInstance Components.interfaces.nsIClipboard.. if clip return false var trans Components.classes '@mozilla.org widget transferable 1' .createInstance Components.interfaces.nsITransferable.. unicode' var str new Object var len new Object var str Components.classes @mozilla.org supports string 1 .createInstance Components.interfaces.nsISupportsString..
about config preferences and js http://stackoverflow.com/questions/3796084/about-config-preferences-and-js examples to make it clear Get the root branch var prefs Components.classes @mozilla.org preferences service 1 .getService Components.interfaces.nsIPrefBranch.. . Get the extensions.myext. branch var prefs Components.classes @mozilla.org preferences service 1 .getService Components.interfaces.nsIPrefService.. examples on that Get the accessibility. branch var prefs Components.classes @mozilla.org preferences service 1 .getService Components.interfaces.nsIPrefService..
How to copy to the clipboard in JavaScript? http://stackoverflow.com/questions/400212/how-to-copy-to-the-clipboard-in-javascript UniversalXPConnect const clipboardHelper Components.classes @mozilla.org widget clipboardhelper 1 .getService Components.interfaces.nsIClipboardHelper..
Copy to Clipboard for all Browsers using javascript http://stackoverflow.com/questions/7713182/copy-to-clipboard-for-all-browsers-using-javascript 'UniversalXPConnect' var clip Components.classes '@mozilla.org widget clipboard 1 ' .createInstance Components.interfaces.nsIClipboard.. if clip return create a transferable var trans Components.classes '@mozilla.org widget transferable 1 ' .createInstance Components.interfaces.nsITransferable.. new objects var str new Object var len new Object var str Components.classes @mozilla.org supports string 1 .createInstance Components.interfaces.nsISupportsString..
|