博客园个人博客动态js个人更新记录
提交模板
-- 日期 修改人:修改js描述
代码:
示例:
2022年5月18日 三号小玩家:博客的点赞功能,去除掉页面点赞和点踩的点击事件
<script >
if(document.getElementsByClassName('diggit')[0]){
document.getElementsByClassName('diggit')[0].style.display='none';
document.getElementsByClassName('buryit')[0].style.display='none';
var str=document.getElementById('digg_count').innerText;
console.log(str);
var ele3=document.createElement("div");
ele3.innerHTML='<div style="position: fixed; bottom: 5px; width: 130px; height: 130px; right: 10px; border: 2px solid #6FA833; padding: 10px; background-color: #fff;">给我点赞333</div>';
document.body.appendChild(ele3);
}
</script>
作者:三号小玩家