Skip to content

Instantly share code, notes, and snippets.

@Zeinok
Zeinok / wine-breeze-dark-theme.md
Last active April 26, 2024 22:03
Breeze Dark theme for Wine

Made possible with this reddit post.

Install

wine regedit wine-breeze-dark.reg

Uninstall (Reset Wine color scheme)

wine regedit wine-reset-theme.reg

{
"basics": {
"name": "Romain Lebesle",
"label": "Full Stack Developer",
"image": "https://en.gravatar.com/userimage/185825515/7a1fc08866f02fb2203473a3fe1a728a.jpg?size=1000",
"email": "job@thoughtsunificator.me",
"url": "http://thoughtsunificator.me",
"summary": "Self taught full stack developer with 5+ years experiences.",
"location": {
"city": "Rennes",
@thoughtsunificator
thoughtsunificator / README.md
Last active April 26, 2024 22:03
Setup a native proxy switcher on Firefox
  • Download script.pac to /home/user/script.pac
  • Go to FF network settings and select 'Automatic proxy configuration URL'
  • Enter file:///home/user/script.pac
  • Enjoy

Note: If you're using SOCKS v5 you might want to also select 'Proxy DNS when using SOCKS v5'

Tested on 116.0.2 (64 bit) Arch Linux

/* 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 https://mozilla.org/MPL/2.0/. */
/*
* Helper functions extract values from manifest members
* and reports conformance errors.
*/
class ValueExtractor {
const { XPCOMUtils } = ChromeUtils.import(
"resource://gre/modules/XPCOMUtils.jsm"
);
XPCOMUtils.defineLazyGlobalGetters(this, ["InspectorUtils"]);
function ValueExtractor(errors, aBundle) {
this.errors = errors;
this.domBundle = aBundle;
}
/* 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 https://mozilla.org/MPL/2.0/. */
/*
* ImageObjectProcessor
* Implementation of Image Object processing algorithms from:
* http://www.w3.org/TR/appmanifest/#image-object-and-its-members
*
* This is intended to be used in conjunction with ManifestProcessor.jsm
*
/* Any copyright is dedicated to the Public Domain.
http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
const {AddonTestUtils} = ChromeUtils.import("resource://testing-common/AddonTestUtils.jsm", {});
ChromeUtils.defineModuleGetter(this, "AddonManager", "resource://gre/modules/AddonManager.jsm");
const {
createAppInfo,
@thoughtsunificator
thoughtsunificator / main.js
Created February 18, 2024 22:03
Allow installing of unsigned web extensions in Firefox
let { XPIDatabase } = ChromeUtils.import('resource://gre/modules/addons/XPIDatabase.jsm', {});
XPIDatabase.isDisabledLegacy = (addon) => false;
XPIDatabase.mustSign = (aType) => false;
@eeejay
eeejay / install_addon.js
Created November 16, 2020 17:31
Sideload addon in Firefox for Android
// In main process JS console:
const { AddonManager } = ChromeUtils.import("resource://gre/modules/AddonManager.jsm")
AddonManager.getInstallForURL(XPI_URL).then(r => r.install())
/* -*- Mode: indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* vim: set sts=2 sw=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";
// Copied form
// taskcluster/docker/periodic-updates/scripts/getHSTSPreloadList.js,