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

Js 设置标题无效 #1318

Open
pyfkrzp opened this issue Mar 21, 2024 · 1 comment
Open

Js 设置标题无效 #1318

pyfkrzp opened this issue Mar 21, 2024 · 1 comment

Comments

@pyfkrzp
Copy link

pyfkrzp commented Mar 21, 2024

Js 设置标题无效

// 打开settings - 自定义 JavaScript,写入下面代码

$('title').text('home');

// 你自己的图标
const icon = 'https://cn.gravatar.com/avatar/3873858713e2e5d5d3ab136312737885?s=256&d=mm';

$('link[rel="mask-icon"]')[0].href = icon;
$('link[rel="icon"]').each(function() {
$(this)[0].href = icon;
})
$('link[rel="apple-touch-icon"]').each(function() {
$(this)[0].href = icon;
})})})

@LinuxServer-CI
Copy link

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Non-Docker Issues
Development

No branches or pull requests

2 participants