Created
October 10, 2022 18:40
-
-
Save Leo1003/dcc630e2fd36abd2eef216e7f6b3d296 to your computer and use it in GitHub Desktop.
Useful Greasemonkey scripts
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 wikipedia_desktop_redirect | |
// @namespace https://jspenguin.org/monkey | |
// @description Redirect mobile wikipedia to desktop version | |
// @include http://*.m.wikipedia.org/* | |
// @include https://*.m.wikipedia.org/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var m = /^(https?:\/\/.*)\.m(\.wikipedia\.org\/.*)/.exec(location.href); | |
if (m) location.href = m[1] + m[2]; |
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 youtube_shorts_redirect | |
// @namespace https://jspenguin.org/monkey | |
// @description Redirect from Youtube Shorts interface to normal video page | |
// @include https://www.youtube.com/shorts/* | |
// @include http://www.youtube.com/shorts/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var m = /^(https?:\/\/)www\.youtube\.com\/shorts\/(.*)/.exec(location.href); | |
if (m) location.href = m[1] + "www.youtube.com/watch?v=" + m[2]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment