Skip to content

Instantly share code, notes, and snippets.

View chelovekula's full-sized avatar
🏠
Working from home

M8ng8l chelovekula

🏠
Working from home
  • USA, San-Andreas
View GitHub Profile
@chelovekula
chelovekula / user.js
Created March 5, 2019 14:28
Custom Firefox user.js and userChrome.css
/******************************************************************************
* Privacy *
******************************************************************************/
// Disable Location-Aware Browsing (geolocation)
user_pref("geo.enabled", false);
// Enable hardening against various fingerprinting vectors (Tor Uplift project)
@chelovekula
chelovekula / gist:ac590bc76d461313a771f2562b604918
Created March 5, 2019 14:28 — forked from lydonchandra/gist:5675402
Mocking/Spoofing Browser Geolocation W3C API Call GpsMock.mock() to mock/spoof
var GpsMock = {
mockSetIntervalId : null,
mock : function( x, y ) {
var setIntervalId;
if( navigator.geolocation ) {
var self = this;
if( !x ) {
//start x y not set, try to get 'REAL' current location and use it
navigator.geolocation.getCurrentPosition(
function success(position) { self.mock(position.coords.longitude, position.coords.latitude) },
@chelovekula
chelovekula / screen-spoofer.user.js
Created March 5, 2019 14:35 — forked from SkyzohKey/screen-spoofer.user.js
~ Spoof the reported window.screen as the most common one so that it can't be used to fingerprint browser.
// ==UserScript==
// @name Spoof screen resolution & color depth
// @namespace https://skyzohlabs.be
// @version 1.0.5
// @description Spoof the reported window.screen as the most common one so that it can't be used to fingerprint browser.
// @author SkyzohKey
// @include http://*
// @include https://*
// @run-at document-end
// @grant none
@chelovekula
chelovekula / spoof.js
Created March 5, 2019 14:36 — forked from unixpickle/spoof.js
getUserMedia() spoof
function fakeGetUserMedia(options) {
var canvas = document.createElement('canvas');
canvas.width = 640;
canvas.height = 480;
var result = new Promise((resolve, reject) => {
setTimeout(() => {
var ctx = canvas.getContext('2d');
ctx.font = '100px sans-serif';
ctx.fillText('💩', 200, 200);
resolve(canvas.captureStream(30));
@chelovekula
chelovekula / my-service
Created August 26, 2019 13:10 — forked from wires/my-service
minimal init.d script
#!/bin/sh
### BEGIN INIT INFO
# Provides: <NAME>
# Required-Start: $local_fs $network $named $time $syslog
# Required-Stop: $local_fs $network $named $time $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: <DESCRIPTION>
### END INIT INFO
@chelovekula
chelovekula / args.gn
Created January 5, 2021 23:12 — forked from paulirish/args.gn
How to build Chromium to hack on DevTools
# Build arguments for the gn build
# You can set these with `gn args out/Default`
# ( and they're stored in src/out/Default/args.gn )
# See "gn args out/Default --list" for available build arguments
# component build, because people love it
is_component_build = true
# release build, because its faster
is_debug = false