Greasy Fork is available in English.

阻止百度网盘WAP版自动跳转至PC版(支持Chrome)

明明是我先强制WAP版的,改地址栏也好,换UA也好……为什么要跳转到PC版呢……

2016-11-03 일자. 최신 버전을 확인하세요.

질문, 리뷰하거나, 이 스크립트를 신고하세요.
// ==UserScript==
// @name         阻止百度网盘WAP版自动跳转至PC版(支持Chrome)
// @namespace    http://TouHou.DieMoe.net/
// @version      0.5
// @description  明明是我先强制WAP版的,改地址栏也好,换UA也好……为什么要跳转到PC版呢……
// @author       DieMoe
// @run-at       document-start
// @match        *://pan.baidu.com/*
// @match        *://yun.baidu.com/*
// @grant          none
// ==/UserScript==
(function() {
    'use strict';
    Object.defineProperty(navigator,'platform',{get:function(){return 'Android';}});

    clearPage();
    
    function clearPage(){
        var clearcss = window.document.createElement("style");
        clearcss.innerHTML = ".banner-active,.welcome-mask,.welcome-box,.user-level,.side-lalldownload,.vip-notice,.vip-privilege,.app-center,.app-download,.coupon-banner-active,#web-right-view,.ad-platform-tips,.union-hot,.sicon{display:none !important;}";  //清理广告或其他无意义按钮的css
        window.document.head.appendChild(clearcss);
    }

})();