Last active
July 24, 2022 22:52
-
-
Save techygrrrl/1bf0fba87fec762457c1f6ce6b5d7cab to your computer and use it in GitHub Desktop.
Twitch following privacy screen. Install a user script runner like ViolentMonkey, TamperMonkey or GreaseMonkey and Click "Raw" to install.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Twitch following privacy screen | |
// @namespace https://techygrrrl.stream | |
// @version 0.1 | |
// @description Mask the following sidebar | |
// @author techygrrrl | |
// @match https://*.twitch.tv/* | |
// @match https://*.twitch.com/* | |
// @icon https://techygrrrl.stream/images/icons/twitch-privacy-screen.png | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
let found = false | |
// Check and click in milliseconds | |
const CHECK_INTERVAL = 200 | |
setInterval(() => { | |
perform() | |
}, CHECK_INTERVAL) | |
function perform() { | |
if (found) return | |
console.log('🕵🏻♀️ Looking for sidebar to mask') | |
const selector = '.side-bar-contents' | |
const element = document.querySelector(selector) | |
if (!element) return | |
console.log('🙈 Masking sidebar') | |
element.style.filter = 'blur(7px)' | |
found = true | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment