Greasy Fork

Greasy Fork is available in English.

elecfans 电子发烧网 阅读全文

自动点击分页的全文按钮,并展开全文。去除部分广告。

当前为 2020-06-14 提交的版本,查看 最新版本

// ==UserScript==
// @name         elecfans 电子发烧网 阅读全文
// @namespace    http://tampermonkey.net/
// @version      0.13
// @description  自动点击分页的全文按钮,并展开全文。去除部分广告。
// @author       萱萱的饭
// @match        http://www.elecfans.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    $.when($.ajax()).then(function(){

        setTimeout(function(){
            $('div.simditor-body').css('height','100%');
            $('.seeHide').remove();
            //console.log("123");
        }, 400);

        // 结束
    });

    $(document).ready(function(){
        $('.article-content').css('height','100%');
        $('div.simditor-body').css('height','100%');
        $('.seeHide').remove();
        $('.sub-adbt').remove();
        $('html body.article-page div#header div.advertising.clearfix').remove();
        $('a.page-next').each(function(i){if($(this).text()=='全文'){
            $(this)[0].click();
        }});
    });
    // Your code here...
})();