commit 513d10a41b7b806d83bc47c4525762ae3ee668d2 Author: L. Bradley LaBoon Date: Sun Mar 13 01:18:42 2022 -0500 Initial commit diff --git a/disable_shorts.js b/disable_shorts.js new file mode 100644 index 0000000..623959b --- /dev/null +++ b/disable_shorts.js @@ -0,0 +1 @@ +location.href = "https://www.youtube.com/watch?v=" + location.pathname.split("/")[2]; diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..daa867d --- /dev/null +++ b/manifest.json @@ -0,0 +1,19 @@ +{ + "manifest_version": 2, + + "name": "YouTube Shorts Disabler", + "author": "L. Bradley LaBoon", + "description": "Redirects YouTube shorts to regular videos", + "version": "1.0", + + "icons": { + "16": "ysd.png", + "48": "ysd.png", + "128": "ysd.png" + }, + + "content_scripts": [{ + "matches": ["https://www.youtube.com/shorts/*"], + "js": ["disable_shorts.js"] + }] +} diff --git a/ysd.png b/ysd.png new file mode 100644 index 0000000..54f9a15 Binary files /dev/null and b/ysd.png differ