Last active
August 27, 2019 10:54
-
-
Save YcSmile/679f6dbafcfa9ba254cef428003c42c2 to your computer and use it in GitHub Desktop.
电子发烧友自动展开+免登录+去广告.Eelecfans.js
This file contains hidden or 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
// ==UserScript== | |
// @name 电子发烧友自动展开+免登录+去广告 | |
// @namespace https://gist.github.com/YcSmile | |
// @version 0.1 | |
// @description 电子发烧友自动展开+免登录+去广告-Jquery版本-Tampermonkey | |
// @author YcSmile | |
// @match *://*.elecfans.com/emb/*/*.html | |
// @match *://*.elecfans.com/d/*.html | |
// @grant none | |
// @icon http://www.elecfans.com/favicon.ico | |
// @run-at document-end | |
// ==/UserScript== | |
// 收缩脚本 | |
// http://www.elecfans.com/d/public/js/article.js | |
var interval = 3500;// 根据自己时间定义 | |
function MakeLove() | |
{ | |
// 展示全文 | |
$(".simditor-body").css({ | |
"height" : "auto", | |
"overflow" : "inherit" | |
}); | |
// 移除登录查看 | |
$(".seeHide").remove(); | |
// 移除广告 | |
$('#iframe_tags').remove() | |
} | |
// 延时执行 | |
setTimeout(MakeLove,interval); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment