Skip to content

Instantly share code, notes, and snippets.

@techygrrrl
Last active July 24, 2022 22:52
Show Gist options
  • Save techygrrrl/1bf0fba87fec762457c1f6ce6b5d7cab to your computer and use it in GitHub Desktop.
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.
// ==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