Greasy Fork is available in English.
自动展开一些网站的隐藏内容。为了更好的上网体验,不兼容低版本浏览器和IE浏览器。
当前为
// ==UserScript==
// @name 自动展开CSDN博客隐藏内容
// @namespace http://tampermonkey.net/
// @version 0.1
// @description 自动展开一些网站的隐藏内容。为了更好的上网体验,不兼容低版本浏览器和IE浏览器。
// @author You
// @match *blog.csdn.net/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
function showFull(btn, lockDom){
const $btn = document.querySelector(btn);
$btn.addEventListener('life0001', function(){
document.querySelector(lockDom).style=null;
this.style.display='none';
}, false);
$btn.dispatchEvent(new Event('life0001'));
};
showFull('.btn-readmore', '#article_content');
})();