Update README.md

This commit is contained in:
我若为王 2020-12-30 13:03:21 +08:00 committed by GitHub
parent 5ed3d4fccc
commit 625bf2d1d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,26 +40,29 @@
}
</style>
```
- 默认主题修改LOGO、移除版权示例来自 mehui@hostloc 初版运用了XSS有一点不足就是可以直接使用 pure JavaScript 实现用了 jQuery欢迎PR
- 默认主题修改LOGO、移除版权示例来自 @iLay1678 初版运用了XSS有一点不足就是可以直接使用 pure JavaScript 实现用了 jQuery欢迎PR
```
<style>
<style>
.right.menu>a{
visibility: hidden;
visibility: hidden;
}
.footer .is-size-7{
visibility: hidden;
visibility: hidden;
}
.item img{
visibility: hidden;
visibility: hidden;
}
</style>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.4.1/dist/jquery.min.js"></script>
<script>$(function(){
$("div.is-size-7").html("Powered by 你的名字").css("visibility","visible");
$(".item img").attr('src','你的方形logo').css("visibility","visible");
$("[rel='shortcut icon']").attr('href','你的方形logo');
});
<script>
window.onload = function(){
var avatar=document.querySelector(".item img")
var footer=document.querySelector("div.is-size-7")
footer.innerHTML="Powered by 你的名字"
footer.style.visibility="visible"
avatar.src="你的方形logo地址"
avatar.style.visibility="visible"
}
</script>
```