返回首頁 

Greasy Fork is available in English.

解锁##新闻需要下载APP才能查看全文

解锁微博PC端跳转至##页面时,浏览新闻需要强制下载APP

// ==UserScript==// @name         解锁##新闻需要下载APP才能查看全文// @namespace    https://www.teaxia.com// @version      1.2.1// @description  解锁微博PC端跳转至##页面时,浏览新闻需要强制下载APP// @author       teaxia// @match        *://*.sina.cn/*// @grant        none// @note         21-01-28 1.1.0 增加了顶部、播放器广告过滤// @note         21-07-04 1.2.1 增加了打开APP按钮过滤、修复播放器层广告过滤失败的问题// @run-at document-end// ==/UserScript==(function() {'use strict';window.addEventListener ("load", remove);function remove() {let node = document.getElementsByClassName('s_card z_c1')   // 内容let artFoldBox = document.getElementById('artFoldBox')  // 弹出层let callApp = document.getElementsByClassName('callApp_fl_btn') // APP按钮let bannerAd = document.getElementsByClassName('cm_art_push')   // banner广告let broadcast_box = document.getElementsByClassName('broadcast_box') // 播放器层// let c_videoGroup_img = document.getElementsByClassName('c_videoGroup_img') // 播放器// 隐藏artFoldBox.style.display = 'none'// 下载APP按钮if(callApp instanceof Object){callApp[0].style.display = 'none'}// 头部横幅广告if(bannerAd instanceof Object && bannerAd.length>0){bannerAd[0].style.display = 'none'}// 隐藏播放内容广告if(broadcast_box instanceof Object && broadcast_box.length>0){for(let i=0;i<broadcast_box.length;i++){console.log(broadcast_box,i)broadcast_box[i].style.display = 'none'}}// 设置正文内容高度if(node instanceof Object && node.length>0){node[0].style.height = 'auto'}}})();