代码拉取完成,页面将自动刷新
// 跳过关注博主展开全文
var article_content = document.getElementById("article_content");
if (article_content) {
article_content.removeAttribute("style");
}
// 免登录复制代码
(function () {
'use strict';
// 优化登陆后复制
const codeElements = document.querySelectorAll('code');
codeElements.forEach(element => {
element.style.userSelect = 'unset';
});
const preElements = document.querySelectorAll('#content_views pre');
preElements.forEach(element => {
element.style.userSelect = 'unset';
});
// 移除“登陆后复制”按钮
const hljsButton = document.querySelector('.hljs-button');
if (hljsButton) {
hljsButton.remove();
}
// 移除readmore按钮,并显示全文
const hideArticleBox = document.querySelector('.hide-article-box');
if (hideArticleBox) {
hideArticleBox.remove();
}
const articleContent = document.querySelector('.article_content');
if (articleContent) {
articleContent.style.height = 'initial';
}
// 去除复制后的版权小尾巴
const elements = document.querySelectorAll('*');
elements.forEach(element => {
element.addEventListener('copy', function (e) {
e.stopPropagation();
});
})
})();
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。