Greasy Fork is available in English.
try to take over the world!
当前为
// ==UserScript==
// @name 贴吧手机版
// @namespace http://tampermonkey.net/
// @version 2024-10-22
// @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 = `
body{width:500px!important;overflow:scroll;}
.aside{display:none!important;}
.left_section,.core_title_wrap_bright,.pb_content,.pb_footer,.p_thread,.search_form,.head_content,.main,.content,.tb_rich_poster_container,.foot,.frs_content_footer_pagelet,.poster_body,.edui-container,.old_style_wrapper{width:400px!important;}
.threadlist_title,.threadlist_author,.editor_title,.l_container {
width: auto!important;
}
.content{margin: 0 0px!important;}
.tb_rich_poster_container,.j_search_form,.search_form form{margin: 0 0px!important;}
.d_author{width: 50px!important;}
.tbui_follow_fixed,.card_top_wrap,.card_top,.nav_wrap,.right_section,.head_main,.card_head,.search_main_fixed,.tbui_aside_float_bar,.j_m_pic_light,.small_wrap,.card_banner,.card_head_img,.search_logo{display:none!important;}
.d_post_content_main{width: 350px!important;}
.icon_relative img,.icon_relative a{width: 50px!important;height: 50px!important;}
.replace_div img {max-width:350px!important;height:auto!important;}
.col2-left,.forum_content .t_con .col2-left{width:15px;}
.threadlist_rep_num,.j_threadlist_li_left{width:15px!important;color:#aaa!important;}
.threadlist_bright .t_con {
padding: 0px 0!important;
margin: 0 5px!important;
}
.j_threadlist_li_right{margin:0!important;}
a{text-decoration: none;}
a:link{color:#1f1f1f;}
a:visited { color: #aaa;}
body{padding:0px!important;background: #fff!important;}
`;
GM_addStyle(mycss2);
})();