Greasy Fork

Greasy Fork is available in English.

安静看虎扑

我只想不注册不下载APP看虎扑

目前为 2021-01-13 提交的版本,查看 最新版本

// ==UserScript==
// @name         安静看虎扑
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  我只想不注册不下载APP看虎扑
// @author       soundEgg
// @require http://libs.baidu.com/jquery/2.0.0/jquery.min.js
// @match         *://m.hupu.com/*
// ==/UserScript==

(function() {
    'use strict';
	var window_url = window.location.href;
    var website_host = window.location.host;
    // Your code here...
       //移除APP打开
    //$('.open-app-suspension').remove();
    try {
		setTimeout(function() {

            //移除首次打开提示页面
            $('.test-mask').remove();
            //移除APP打开页面
            $('.open-app-suspension').remove();
            //移除首页top
            //$('.hp-m-header').remove();
            //if(document.querySelector('.home-nav')){$('.home-nav')[0].style.cssText='margin-top:0;';};

            //移除帖子中的顶端诱导app打开
            $('.swiper-header').remove();
            $('.detail-nav').remove();
            //移除帖子内热门话题
            $('.hot-topic-wrapper').remove();
            //移除广告栏


		}, 1000);
	} catch(e) {
		console.log('发生了异常:', e);
	};


})();