Last active
July 12, 2023 09:20
-
-
Save sunzsh/6acdb6b269fe79d61bf2b4653c714650 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){document.querySelector('.hide-article-pos').remove();document.querySelector('.article_content').style.height='initial';})() |
应该是的
这个脚本的代码和 csdn 复制的代码是一样的..... @sunzsh
javascript: (function () {
var hide = document.querySelector('.hide-article-pos');
var content = document.querySelector('.article_content');
if (hide && content) {
hide.remove();
content.style.height = 'initial';
}
document.querySelectorAll('.hide-preCode-bt').forEach(function (item) {
item.dispatchEvent(new Event('click', { bubbles: true }));
});
})();
这个脚本的代码和 csdn 复制的代码是一样的..... @sunzsh
再试试,但是这种只针对“关注展开”的情况
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这个是不是失效了