Skip to content

Instantly share code, notes, and snippets.

View hotsoft-desenv2's full-sized avatar
🖥️
Working

Wellington Torrejais da Silva - Hotsoft_desenv2 hotsoft-desenv2

🖥️
Working
View GitHub Profile
@hotsoft-desenv2
hotsoft-desenv2 / Services.jsm
Created June 26, 2020 16:01
resource://gre/modules/Services.jsm
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* eslint mozilla/use-services:off */
var EXPORTED_SYMBOLS = ["Services"];
const { AppConstants } = ChromeUtils.import(
"resource://gre/modules/AppConstants.jsm"
@hotsoft-desenv2
hotsoft-desenv2 / PromiseUtils.jsm
Created June 26, 2020 16:01
resource://gre/modules/PromiseUtils.jsm
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
var EXPORTED_SYMBOLS = ["PromiseUtils"];
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
@hotsoft-desenv2
hotsoft-desenv2 / MessagePort.jsm
Last active June 26, 2020 16:00
resource://gre/modules/remotepagemanager/MessagePort.jsm
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
var EXPORTED_SYMBOLS = ["MessagePort", "MessageListener"];
ChromeUtils.defineModuleGetter(
this,
@hotsoft-desenv2
hotsoft-desenv2 / RemotePageManagerChild.jsm
Created June 26, 2020 15:59
resource://gre/modules/remotepagemanager/RemotePageManagerChild.jsm
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
var EXPORTED_SYMBOLS = ["ChildMessagePort"];
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const { MessagePort } = ChromeUtils.import(
@hotsoft-desenv2
hotsoft-desenv2 / E10SUtils.jsm
Created June 26, 2020 15:57
resource://gre/modules/E10SUtils.jsm
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
var EXPORTED_SYMBOLS = ["E10SUtils"];
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
const { XPCOMUtils } = ChromeUtils.import(
@hotsoft-desenv2
hotsoft-desenv2 / BrowserTabChild.jsm
Created June 26, 2020 15:57
view-source:resource:///actors/BrowserTabChild.jsm
/* vim: set ts=2 sw=2 sts=2 et tw=80: */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
var EXPORTED_SYMBOLS = ["BrowserTabChild"];
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
@hotsoft-desenv2
hotsoft-desenv2 / RequestListHeader.js
Created May 20, 2020 14:49
view-source:resource://devtools/client/netmonitor/src/components/request-list/RequestListHeader.js
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const {
createRef,
Component,
createFactory,
@hotsoft-desenv2
hotsoft-desenv2 / NetUtil.jsm
Created May 20, 2020 14:49
view-source:resource://gre/modules/NetUtil.jsm
/* -*- indent-tabs-mode: nil; js-indent-level: 4 -*-
* vim: sw=4 ts=4 sts=4 et filetype=javascript
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
var EXPORTED_SYMBOLS = ["NetUtil"];
/**
* Necko utilities
@hotsoft-desenv2
hotsoft-desenv2 / NetworkEventMessage.js
Created May 20, 2020 14:49
view-source:resource://devtools/client/webconsole/components/Output/message-types/NetworkEventMessage.js
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
// React & Redux
const {
createFactory,
createElement,
@hotsoft-desenv2
hotsoft-desenv2 / accessibility.js
Created May 20, 2020 14:05
view-source:resource://devtools/server/actors/utils/accessibility.js
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
loader.lazyRequireGetter(this, "Ci", "chrome", true);
loader.lazyRequireGetter(this, "Services");
loader.lazyRequireGetter(
this,