Greasy Fork

Greasy Fork is available in English.

贴吧手机版

try to take over the world!

当前为 2024-10-23 提交的版本,查看 最新版本

// ==UserScript==
// @name         贴吧手机版
// @namespace    http://tampermonkey.net/
// @version      1.11
// @description  try to take over the world!
// @author       You
// @match        https://tieba.baidu.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=baidu.com
// @grant        GM_addStyle

// ==/UserScript==

function viewport() {
    if (document.querySelector('meta[name="viewport"]')) {
      return;
    }
    const el = document.createElement("meta");
    el.name = "viewport";
    el.content = "width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no";
    document.head.append(el);
  }



(function() {
    'use strict';

    // Your code here...
viewport();
var mycss2 = `

.threadlist_detail>.threadlist_author,.head_content,.share_btn_wrapper,.icon-jubao,.user-hide-post-down,.right_section,.suggestion_list,.search_top,#fixed_bar,.aside,.nav_wrap,.userbar,.card_banner,.card_top_wrap{display:none;}

ul,li{list-style-type:none;padding:0px;margin:0;}
.aaaa{padding:0px!important;margin:0!important;width:auto!important;margin:0!important;}

.search_ipt{width:300px!important;}

#thread_list{padding:0px;}
.threadlist_author{float:right;}
.threadlist_media li,.col2_left{float:left;}

.j_thread_list{background:#fff;overflow:hidden;margin:0 0 10px 0;}
.j_thread_list a{text-decoration:none;}
.threadlist_text{font-size:14px;color:#777;}


.d_post_content img{max-width:400px;height:auto;}
.core_reply_content{background:#ddd;margin-left:100px;padding:5px 10px;}
.p_author img{width:50px;height:auto;}
.lzl_jb{width:0;height:0;}
.lzl_p_p img{width:30px;height:auto;}
.p_author{float:left;}
.l_post{background:#fff;overflow:hidden;}
.post-tail-wrap,.post-tail-wrap a{font-size:14px;color:#aaa;}
#ueditor_replace{width:300px!important;border:1px solid;}
`;

$('link[rel="stylesheet"], style').remove();
GM_addStyle(mycss2);
})();