Skip to content
View fib.js
let fibonacci = {
[Symbol.iterator]() {
let pre = 0, cur = 1;
return {
next() {
[pre, cur] = [cur, pre + cur];
return { done: false, value: cur }
}
}
}
View aaa_parent_frame.html
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="edit-Type" edit="text/html; charset=utf-8" />
View bz-1.0a1.js
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
'use strict';
var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } };
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, static
View styles.js
WebConsoleCommands.register("styles", function(aOwner, aSelector) {
let styles = _.map(aOwner.window.document.styleSheets, (style) => {
let _uri = urls.URL(style.href);
return {domain: _uri.hostname, style: style.href};
});
// return aOwner.window.document.styleSheets; // works
return styles; // doesn't work
});
View addhelper.js
const { Cc, Ci, Cu, Cr, Cm, components } = require('chrome');
const { devtools } = Cu.import("resource://gre/modules/devtools/Loader.jsm", {});
const { WebConsoleCommands } = devtools.require("devtools/toolkit/webconsole/utils");
let { ActionButton } = require("sdk/ui/button/action");
let button = ActionButton({
id: "my-button-id",
label: "Add Console Helper",
icon: {
View Uservoice.json
[
[
"Ability to filter network tab data",
"https://ffdevtools.uservoice.com/forums/246087-firefox-developer-tools-ideas/suggestions/6656793-ability-to-filter-network-tab-data"
],
[
"View Source in a tab",
"https://ffdevtools.uservoice.com/forums/246087-firefox-developer-tools-ideas/suggestions/5895550-view-source-in-a-tab"
],
[
View trigger-gcli.js
var FirefoxClient = require("firefox-client");
var client = new FirefoxClient(),
path = '~/tmp/',
options = {};
client.connect(6000, function() {
var arguments = {
path: path,
options: options
};
View tooldefinition.js
"use strict";
const { Cc, Ci, Cu, Cr } = require('chrome');
Cu.import("resource://gre/modules/Services.jsm");
Cu.import("resource://gre/modules/XPCOMUtils.jsm");
Cu.import("resource:///modules/devtools/gDevTools.jsm");
const { setTimeout, clearTimeout } = require('sdk/timers');
const ZestRunner = require('zest-runner');
View jpm-build.sh
#!/bin/bash
JPM=/usr/local/bin/jpm
if [ -z "$1" ]; then
URL="http://127.0.0.1:8888/"
else
URL="http://127.0.0.1:$1/"
fi
View foo.xml
<?xml version="1.0" encoding="utf-8"?>
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
<Description about="urn:mozilla:install-manifest">
<em:id>@bztodo</em:id>
<em:version>0.0.2</em:version>
<em:type>2</em:type>
<em:bootstrap>true</em:bootstrap>
<em:unpack>false</em:unpack>
<em:name>Bugzilla Request Flags</em:name>
<em:homepageURL/>
Something went wrong with that request. Please try again.