Skip to content

Instantly share code, notes, and snippets.

@berdosi
Created April 14, 2019 21:59
Show Gist options
  • Save berdosi/ed9c490c9012702b174a9e2d3556b8e9 to your computer and use it in GitHub Desktop.
Save berdosi/ed9c490c9012702b174a9e2d3556b8e9 to your computer and use it in GitHub Desktop.
Userscript to disable opening youtube app when visiting the link from the browser.
// ==UserScript==
// @name removeappreference
// @namespace numen
// @include https://www.youtube.com/*
// @include https://youtube.com/*
// @include http://www.youtube.com/*
// @include http://youtube.com/*
// @include https://m.youtube.com/*
// @include http://m.youtube.com/*
// @version 1
// @grant none
// ==/UserScript==
for (;node=document.querySelector("meta[content^=vnd]");) node.property="";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment