This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cu.import('chrome://cdumpjsm/content/cDump.jsm'); | |
initSHA1(this); //onload must run this once | |
var HTTPMethod = 'POST'; | |
var requestURL = 'https://api.twitter.com/oauth/request_token'; | |
var APIKey = 'AjONvgAdbD8YWCtRn5U9yA'; //also known as oauth_consumer_key //from your app page on twitter dev site | |
var ConsumerSecret = 'jrcJKxvJ92NeeV48RL1lotN9PigbxCCbqUkKj237yio'; //from your app page on twitter dev site | |
var OAuthTokenSecret = ''; | |
var param = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var win = Services.wm.getMostRecentWindow('navigator:browser'); | |
var panel = win.document.createElement('panel'); | |
var props = { | |
type: 'arrow', | |
style: 'width:300px;height:100px;' | |
} | |
for (var p in props) { | |
panel.setAttribute(p, props[p]); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cu.import('resource://gre/modules/Services.jsm'); | |
var httpRequestObserver = | |
{ | |
observe: function(subject, topic, data) | |
{ | |
var httpChannel, requestURL; | |
if (topic == 'http-on-modify-request') { | |
httpChannel = subject.QueryInterface(Ci.nsIHttpChannel); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const {classes: Cc, interfaces: Ci, utils: Cu} = Components; | |
const self = { | |
id: 'Floppers', | |
suffix: '@jetpack', | |
path: 'chrome://floppers/content/', | |
aData: 0, | |
}; | |
const myServices = {}; | |
Cu.import('resource://gre/modules/Services.jsm'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div style="left: 10px; top: 10px;" class="roar-body"> | |
<div id="shipyard-hrtypyw7" style="opacity: 1;" class="roar error"><div style="" class="roar-bg"></div><div class="roar-icon"></div><h3>Install Add-on Builder Helper</h3><p>To test this add-on, please install the <a id="install_addon_helper" href="https://addons.mozilla.org/firefox/downloads/latest/182410?src=external-builder">Add-on Builder Helper add-on</a></p></div> | |
<div id="shipyard-hrtypyw7" style="opacity: 1;" class="roar warning"><div style="" class="roar-bg"></div><div class="roar-icon"></div><h3>Install Add-on Builder Helper</h3><p>To test this add-on, please install the <a id="install_addon_helper" href="https://addons.mozilla.org/firefox/downloads/latest/182410?src=external-builder">Add-on Builder Helper add-on</a></p></div> | |
<div id="shipyard-hrtypyw7" style="opacity: 1;" class="roar message"><div style="" class="roar-bg"></div><div class="roar-icon"></div><h3>Install Add-on Builder Helper</h3><p>To test this add-on, please install the <a id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var loadFlags = chan.loadFlags; | |
if (chan.URI.schemeIs("https")) | |
loadFlags &= ~chan.INHIBIT_PERSISTENT_CACHING; //the &= ~ will add it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Components.utils.import('resource://gre/modules/Services.jsm') | |
var aDOMWindow = Services.wm.getMostRecentWindow('navigator:browser'); | |
var newTabBrowser = aDOMWindow.gBrowser.getBrowserForTab(aDOMWindow.gBrowser.loadOneTab('http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_tolocaletimestring', { | |
inBackground: false | |
})); | |
newTabBrowser.addEventListener('load', function onloadFunc() { | |
Services.appShell.hiddenDOMWindow.console.log('tab loaded'); | |
newTabBrowser.removeEventListener('load', arguments.callee, true); | |
var doc = newTabBrowser.contentDocument; | |
var win = doc.defaultView; |