Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Naver): rewrite Presence #8303

Merged
merged 8 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions websites/N/Naver/iframe.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const iframe = new iFrame();

iframe.on("UpdateData", () => {
if (document.querySelector("div.nick")) {
if (document.querySelector(".se-documentTitle span")) {
iframe.send({
blog: document.querySelector("div.nick").textContent,
blog: document.querySelector(".se-documentTitle span").textContent.trim(),
});
}
});
5 changes: 2 additions & 3 deletions websites/N/Naver/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,14 @@
"url": [
"www.naver.com",
"tv.naver.com",
"now.naver.com",
"papago.naver.com",
"comic.naver.com",
"entertain.naver.com",
"blog.naver.com",
"cafe.naver.com"
],
"regExp": "((section)[.])?([a-z]+)[.]naver[.]([a-z0-9]+)",
"version": "1.2.21",
"regExp": "((section)[.])?(?!chzzk)([a-z]+)[.]naver[.]([a-z0-9]+)",
"version": "2.0.0",
"logo": "https://cdn.rcd.gg/PreMiD/websites/N/Naver/assets/logo.png",
"thumbnail": "https://cdn.rcd.gg/PreMiD/websites/N/Naver/assets/thumbnail.png",
"color": "#03d05a",
Expand All @@ -55,7 +54,7 @@
"naver-cafe"
],
"iframe": true,
"iFrameRegExp": ".*",

Check warning on line 57 in websites/N/Naver/metadata.json

View workflow job for this annotation

GitHub Actions / Presence Validator

Presence has metadata.iFrameRegExp set to '.*', please change this if possible
"settings": [
{
"id": "buttons",
Expand Down
Loading
Loading