-
Notifications
You must be signed in to change notification settings - Fork 0
/
core.js
25 lines (25 loc) · 1.2 KB
/
core.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// ==UserScript==
// @name Disable Weibo Article FollowMask
// @name:zh-CN 取消微博文章关注阅读全文
// @description 用来解除部分微博文章要求关注作者才能阅读全文的限制
// @version 1.05
// @author GensouSakuya
// @include *weibo.com/ttarticle/*
// @run-at document-end
// @require https://code.jquery.com/jquery-3.1.1.min.js
// @namespace https://greasyfork.org/users/194737
// ==/UserScript==
$('.W_gotop.S_ficon_bg').before('<a href="javascript:" id="gogoda" data-tip="text=阅读全文&showWithAni=fadeInRight&hideWithAni=fadeOutLeft&pos=left-middle" class="W_gotop S_ficon_bg" action-type="data-tip" style="margin-bottom: 167px;position: fixed;top: auto;"><em class="W_ficon ficon_backtop S_bg2_c">🐔</em></a>')
$("#gogoda").click(function(){
let frameClasses = ['.WB_editor_iframe_new', '.WB_editor_iframe_word', '.WB_editor_iframe'];
for(let i=0;i<frameClasses.length;i++)
{
let frame = $(frameClasses[i]);
if(frame != null && frame[0]!= null)
{
frame[0].style['height'] = 'auto';
}
}
$('.btn_line.W_tc.W_f14').remove()
$('.artical_add_box.S_bg2').remove()
})