Skip to content

Commit

Permalink
feat: remove login form automatically when open douyin.com
Browse files Browse the repository at this point in the history
  • Loading branch information
leedom92 committed Sep 4, 2023
1 parent e2fbb7e commit 22a7e10
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 9 additions & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -53,6 +53,14 @@
"matches": [
"https://www.bilibili.com/*"
]
},
{
"js": [
"scripts/douyin.js"
],
"matches": [
"https://www.douyin.com/*"
]
}
]
}
4 changes: 4 additions & 0 deletions extension/scripts/douyin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
window.onload = () => {
const LOGIN_PAGE = document.getElementById('login-full-panel')
LOGIN_PAGE?.remove()
}

0 comments on commit 22a7e10

Please sign in to comment.