From 22a7e10ff78e2c6760e5bd841054e8bb16cae6fb Mon Sep 17 00:00:00 2001 From: Leedom Date: Mon, 4 Sep 2023 21:55:31 +0800 Subject: [PATCH] feat: remove login form automatically when open douyin.com --- extension/manifest.json | 10 +++++++++- extension/scripts/douyin.js | 4 ++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 extension/scripts/douyin.js diff --git a/extension/manifest.json b/extension/manifest.json index 5adcdfb..f92d729 100644 --- a/extension/manifest.json +++ b/extension/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "You-Dont-Need-Useless-Dom", - "version": "1.1.0", + "version": "1.2.0", "description": "There is a lot of dom that we may not wanna look at.", "homepage_url": "https://github.com/leedom92/You-Dont-Need-Useless-Dom", "icons": { @@ -53,6 +53,14 @@ "matches": [ "https://www.bilibili.com/*" ] + }, + { + "js": [ + "scripts/douyin.js" + ], + "matches": [ + "https://www.douyin.com/*" + ] } ] } diff --git a/extension/scripts/douyin.js b/extension/scripts/douyin.js new file mode 100644 index 0000000..fbcb804 --- /dev/null +++ b/extension/scripts/douyin.js @@ -0,0 +1,4 @@ +window.onload = () => { + const LOGIN_PAGE = document.getElementById('login-full-panel') + LOGIN_PAGE?.remove() +}