Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save YcSmile/679f6dbafcfa9ba254cef428003c42c2 to your computer and use it in GitHub Desktop.
Save YcSmile/679f6dbafcfa9ba254cef428003c42c2 to your computer and use it in GitHub Desktop.
电子发烧友自动展开+免登录+去广告.Eelecfans.js
// ==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