Disable Weibo Article FollowMask

用来解除部分微博文章要求关注作者才能阅读全文的限制

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==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=阅读全文&amp;showWithAni=fadeInRight&amp;hideWithAni=fadeOutLeft&amp;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()
})