Src Reference: http://bernaerts.dyndns.org/download/ubuntu/install-mozilla-addon Article: http://bernaerts.dyndns.org/linux/74-ubuntu/271-ubuntu-firefox-thunderbird-addon-commandline
sudo apt-get install xvfb
sudo Xvfb :99.0 -ac
export DISPLAY=:99.0
| /*jshint asi:true globalstrict:true*/ | |
| 'use strict'; | |
| // Workaround for Bug 785891 | |
| // and sugar around: https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIComponentManager#addBootstrappedManifestLocation%28 | |
| let { Cc, Ci, Cm } = require('chrome') | |
| let ioService = Cc['@mozilla.org/network/io-service;1']. | |
| getService(Ci.nsIIOService) |
| /*jshint asi:true globalstrict:true*/ | |
| 'use strict'; | |
| let { Cc, Ci } = require('chrome') | |
| let ioService = Cc['@mozilla.org/network/io-service;1']. | |
| getService(Ci.nsIIOService) | |
| let resourceHandler = ioService.getProtocolHandler('resource'). | |
| QueryInterface(Ci.nsIResProtocolHandler) |
| <!DOCTYPE html> | |
| <html> | |
| <canvas id="c" width="128" height="128"></canvas> | |
| <script src="glutil.js"></script> | |
| <script id="vshader" type="text/plain"> | |
| attribute vec2 vtxpos; | |
| varying vec2 texpos; | |
| void main() { | |
| texpos = (vtxpos / 2.) + vec2(0.5, 0.5); | |
| gl_Position = vec4(vtxpos, 0, 1); |
| declare module pc { | |
| export module fw { | |
| export class Application { | |
| constructor(canvas: HTMLElement, options: any); | |
| start: () => void; | |
| setCanvasFillMode: (mode: any) => void; | |
| setCanvasResolution: (mode: any) => void; | |
| on: (event: string, any) => void; |
| Cu.import('resource://gre/modules/ctypes.jsm') | |
| var wintypesInit = function() { | |
| // BASIC TYPES (ones that arent equal to something predefined by me) | |
| this.BOOL = ctypes.bool; | |
| this.DWORD = ctypes.uint32_t; | |
| this.HANDLE = ctypes.voidptr_t; | |
| this.INT = ctypes.int; | |
| this.PVOID = ctypes.voidptr_t; |
| #!/usr/bin/env node | |
| var util = require('util'), | |
| fs = require('fs'), | |
| path = require('path'), | |
| http = require('http'), | |
| _ = require('lodash'), | |
| url = require('url'); | |
| var DEBUG = false, |
Src Reference: http://bernaerts.dyndns.org/download/ubuntu/install-mozilla-addon Article: http://bernaerts.dyndns.org/linux/74-ubuntu/271-ubuntu-firefox-thunderbird-addon-commandline
sudo apt-get install xvfb
sudo Xvfb :99.0 -ac
export DISPLAY=:99.0
| Over time, I collected some options to make Firefox really fast. | |
| WARNING! NO WARRANTY, use on your own risk! | |
| If you know what you're doing, go to 'about:config' and edit the listed values accordingly. | |
| Hint: Double-click boolean values to toggle true/false. | |
| ########################### | |
| If mouse-wheel scrolling is slow, try |
| const {interfaces: Ci, utils: Cu} = Components; | |
| Cu.import('resource://gre/modules/Services.jsm'); | |
| /*start - windowlistener*/ | |
| var windowListener = { | |
| //DO NOT EDIT HERE | |
| onOpenWindow: function (aXULWindow) { | |
| // Wait for the window to finish loading | |
| let aDOMWindow = aXULWindow.QueryInterface(Ci.nsIInterfaceRequestor).getInterface(Ci.nsIDOMWindowInternal || Ci.nsIDOMWindow); | |
| aDOMWindow.addEventListener("load", function () { |
| Cu.import('resource://gre/modules/ctypes.jsm'); | |
| var libxcb; | |
| try { | |
| libxcb = ctypes.open('libxcb.so'); | |
| } catch(ignore) { | |
| libxcb = ctypes.open('libxcb.so.1'); | |
| } | |
| var libkey; |