summaryrefslogtreecommitdiff
path: root/qutebrowser/javascript/quirks/discord.user.js
blob: 5f924c911c71fa49f9b08e17d109ce59714dcab4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// ==UserScript==
// @include https://discord.com/*
// ==/UserScript==

// Workaround for Discord's silly bot detection (or whatever it is logging
// people out with vertical tabs).

"use strict";

Object.defineProperty(window, "outerWidth", {
    get() {
        return window.innerWidth;
    },
});