Skip to content

Instantly share code, notes, and snippets.

@Tuurash
Last active September 30, 2024 20:29
Show Gist options
  • Select an option

  • Save Tuurash/288c552dfba8a2a8dd0b13dc4ebe6f67 to your computer and use it in GitHub Desktop.

Select an option

Save Tuurash/288c552dfba8a2a8dd0b13dc4ebe6f67 to your computer and use it in GitHub Desktop.
Awesome sourced(verified & custom scripts)
/* ==UserStyle==
@name Youtube Enhancer Patch
@namespace koumaza
@version 1.0.0
@homepageURL https://gitlab.com/-/snippets/2078210
@updateURL https://gitlab.com/-/snippets/2078210/raw/master/enhancer-for-yt_custom-theme.user.css
@license WTFPL(PublicDomain)
@author koumaza
@preprocessor stylus
==/UserStyle== */
@-moz-document regexp('https?:\/\/(?!gaming\.)(?!studio\.).*youtube.*\.com\/(?!premium).*$')
#enhancer-for-youtube-toolbar,
body.enhancer-for-youtube-cinema-mode #enhancer-for-youtube-toolbar-wrapper:hover #enhancer-for-youtube-toolbar
background-color #00000000 !important
#enhancer-for-youtube-toolbar
border-color #000000
#enhancer-for-youtube-toolbar i
color #000 !important
#enhancer-for-youtube-toolbar:hover i
color #FFF !important
#enhancer-for-youtube-toolbar:hover
border-color #737BBB
//addon: https://github.com/YouTube-Enhancer/extension/releases
//theme ref: [Youtube Enhancer Patch](https://gitlab.com/-/snippets/2078210)
// ==UserScript==
// @name Analytics Blocker
// @description Disables Google Analytics and Yandex.Metrika tracking counters.
// @icon https://yastatic.net/s3/metrika/_/BQoTNR-tROww0upHOLDbSqFzfYE.ico
// @version 1.1
// @match *://*/*
// @run-at document-start
// @grant unsafeWindow
// @noframes
// @namespace https://stomaks.me
// @supportURL https://stomaks.me?feedback
// @contributionURL https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=Greasy+Fork+donation
// @author Maxim Stoyanov (stomaks)
// @developer Maxim Stoyanov (stomaks)
// @license MIT
// @compatible chrome
// @compatible firefox
// @compatible opera
// @compatible safari
// @downloadURL https://update.greasyfork.org/scripts/401801/Google-Analytics-Blocker.user.js
// @updateURL https://update.greasyfork.org/scripts/401801/Google-Analytics-Blocker.meta.js
// @downloadURL https://update.greasyfork.org/scripts/403035/YandexMetrika-Blocker.user.js
// @updateURL https://update.greasyfork.org/scripts/403035/YandexMetrika-Blocker.meta.js
// ==/UserScript==
(function() {
'use strict';
// Block Google Analytics tracking
// https://greasyfork.org/en/scripts/401801-google-analytics-blocker
if (typeof unsafeWindow._gaUserPrefs === 'undefined') {
unsafeWindow._gaUserPrefs = {
ioo: function() {
return true;
}
};
}
// Block Yandex.Metrika tracking
// https://greasyfork.org/en/scripts/403035-yandex-metrika-blocker
if (typeof unsafeWindow.Ya === 'undefined' || typeof unsafeWindow.Ya._metrika === 'undefined') {
unsafeWindow.Ya = unsafeWindow.Ya || {};
unsafeWindow.Ya._metrika = unsafeWindow.Ya._metrika || {};
unsafeWindow.Ya._metrika.oo = true;
}
})();
//Temper Monkey script blocking trackers n analysis
//Google Analytics
//Yandex Metrika
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment