Skip to content

Instantly share code, notes, and snippets.

@wellington1993
wellington1993 / l10n.js
Created July 23, 2020 19:33
view-source:resource://devtools/shared/l10n.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 parsePropertiesFile = require("devtools/shared/node-properties/node-properties");
const { sprintf } = require("devtools/shared/sprintfjs/sprintf");
const propertiesMap = {};
@wellington1993
wellington1993 / PushService.jsm
Created July 23, 2020 19:34
view-source:resource://gre/modules/PushService.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";
const { AppConstants } = ChromeUtils.import(
"resource://gre/modules/AppConstants.jsm"
);
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
@wellington1993
wellington1993 / TelemetrySession.jsm
Created July 23, 2020 19:42
view-source:resource://gre/modules/TelemetrySession.jsm
/* -*- js-indent-level: 2; indent-tabs-mode: nil -*- */
/* 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 { Log } = ChromeUtils.import("resource://gre/modules/Log.jsm");
ChromeUtils.import("resource://gre/modules/Services.jsm", this);
ChromeUtils.import("resource://gre/modules/XPCOMUtils.jsm", this);
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 26, 2024 20:55
Complete Recent Discord Quest

Complete Recent Discord Quest

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
  2. Join a vc
  3. Stream any window (can be notepad or something)
  4. Press Ctrl+Shift+I to open DevTools
  5. Go to the Console tab
  6. Paste the following code and hit enter:
let wpRequire;
@wellington1993
wellington1993 / self-hosted.html
Created July 23, 2020 19:42
view-source:http://self-hosted/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html data-adblockkey="MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKX74ixpzVyXbJprcLfbH4psP4+L2entqri0lzh6pkAaXLPIcclv6DQBeJJjGFWrBIF6QMyFwXT5CCRyjS2penECAwEAAQ==_X518fx67cgr6Cl0Hk2wsygG+4REZQbFOoujqmt6IBJVk0GV/oIeKdb2RJB9y+TF7LlW1tOFsOZX5kkFJoWlYag==" xmlns="http://www.w3.org/1999/xhtml">
<head> <script type="text/javascript">var abp;</script><script type="text/javascript" src="http://www.freeresultsguide.com/px.js?ch=1"></script><script type="text/javascript" src="http://www.freeresultsguide.com/px.js?ch=2"></script><script type="text/javascript">function handleABPDetect(){try{if(!abp) return;var imglog = document.createElement("img");imglog.style.height="0px";imglog.style.width="0px";imglog.src="http://www.freeresultsguide.com/sk-logabpstatus.php?a=RU1NekZHMnA4L25rVDUyd3pGc2QxYkxCcEJLMHcyTDArU2lsRUJraWYrTjVWUnN1alkwZlpMS2pGUVpIeDNUaW9QWTJYVEh4RW5FMW5SNVNhc0Q0aWdnN2Mybnh3clRyOE
@chales
chales / bbedit-pretty-json-readme.txt
Last active April 26, 2024 20:55
Make JSON legible with BBEdit
2016/03/15
Tested with BBEdit 11.5 / OS X 10.11.3 / Python 2.7.10
http://grokin.gs/blog/elegant-json-pretty-print-for-bbedit/
Place the script (or a link to this script) in the ~/Library/Application Support/BBEdit/Text Filters directory
Restart BBEdit.
The new filter should be under: "Test > Apply Text Filter > bbedit-pretty-json"
@wellington1993
wellington1993 / crypto-SDR.js
Created July 23, 2020 19:44
view-source:resource://gre/modules/crypto-SDR.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/. */
const { XPCOMUtils } = ChromeUtils.import(
"resource://gre/modules/XPCOMUtils.jsm"
);
const { Services } = ChromeUtils.import("resource://gre/modules/Services.jsm");
ChromeUtils.defineModuleGetter(
@wellington1993
wellington1993 / storage-json.js
Created July 23, 2020 19:44
view-source:resource://gre/modules/storage-json.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/. */
/**
* nsILoginManagerStorage implementation for the JSON back-end.
*/
"use strict";
{
"resourceType": "Bundle",
"id": "761c8f1c-996d-4406-8003-cec50aa4903d",
"meta": {
"lastUpdated": "2020-07-24T13:40:08.669+00:00"
},
"type": "searchset",
"link": [ {
"relation": "self",
"url": "http://hapi.fhir.org/baseR4/DiagnosticReport?_format=json&_pretty=true"
{
"resourceType": "Bundle",
"meta": {
"lastUpdated": "2020-03-23T14:23:56.567-02:00"
},
"identifier": {
"system": "http://www.saude.gov.br/fhir/r4/NamingSystem/BRRNDS-{{idSolicitacao}}",
"value": "765345678987654345678"
},
"type": "document",