Greasy Fork is available in English.
电子发烧友直接阅读全文并去除头部广告
当前为
// ==UserScript==
// @name 电子发烧友直接阅读全文
// @namespace http://tampermonkey.net/
// @version 0.1
// @description 电子发烧友直接阅读全文并去除头部广告
// @author DC
// @match http://m.elecfans.com/*
// @grant none
// @require https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js
// @run-at document-end
// ==/UserScript==
(function() {
'use strict';
function hideAd() {
var AdList = document.querySelectorAll('.open_app.flex.open_app_fixed')
if(AdList instanceof Object && AdList.length>0){
for(var i=0;i<AdList.length;i++){
AdList[i].style.display = 'none'
}
}
}
function hideReadMore(){
$('.article').removeClass('limit_height').removeClass('limit_height_computer');
// $('.show_more').parents('.see_more').remove();
$('.see_more_arc').addClass('hide');
layer.closeAll()
}
setTimeout(()=>{
hideReadMore()
}, 1000)
$(window).scroll(function(){
var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
if (scrollTop > 0) {
hideAd();
}
});
})();