Skip to content

Instantly share code, notes, and snippets.

@thienha1
thienha1 / Nano Adblocker.txt
Last active June 10, 2021 17:03
Nano Adblocker.txt
no-csp-reports: * true
no-large-media: behind-the-scene false
no-popups: adnit.xyz true
no-popups: animehay.tv true
no-popups: ashort1a.xyz true
no-popups: axuur.com true
no-popups: bigb0ss.net true
no-popups: birdurls.com true
no-popups: bitcoinly.in true
no-popups: bitlinks.pw true
@thienha1
thienha1 / Focus Page.user.js
Last active March 11, 2021 04:31
Focus Page.user.js
// ==UserScript==
// @name Focus
// @include *
// @run-at document-start
// @grant unsafeWindow
// ==/UserScript==
unsafeWindow.document.hasFocus = function () {return true;};
// visibilitychange events are captured and stopped
document.addEventListener("visibilitychange", function(e) {
@thienha1
thienha1 / Always Autoplay Embedded YouTube.user.js
Created February 7, 2018 03:57
Always Autoplay Embedded YouTube
// ==UserScript==
// @name Always Autoplay Embedded YouTube
// @namespace AlwaysAutoplayEmbeddedYouTube
// @description Always autoplay embedded YouTube video
// @author jcunews
// @include https://www.youtube.com/embed?*
// @include https://www.youtube.com/embed/*
// @version 1.0.0
// @grant none
// ==/UserScript==
@thienha1
thienha1 / Youtubespeed.user.js
Last active March 31, 2018 09:23
Youtubespeed
// ==UserScript==
// @name Youtubespeed
// @namespace Youtubespeed
// @include https://www.youtube.com/*
// @version 1
// ==/UserScript==
var playspeed = 0.25, //---> set the speed you want here (replace "3.5", don't remove the comma behind it)
prevspeed = 0,
rprevspeed = 0,
// ==UserScript==
// @name YT Embed Auto-pause
// @namespace [NAMEHASH]
// @version 0.1
// @description Pauses Youtube Videos after a delay
// @author /u/AyrA_ch
// @match https://youtube.com/embed/*
// @match https://*.youtube.com/embed/*
// @grant none
// ==/UserScript==