Wechat article desktop layout

使文章撑满整个屏幕。消除手机排版横向文字过少的问题。Expand the article width to fit the screen.

Author
ThunderMikey
Daily installs
0
Total installs
114
Ratings
1 0 1
Version
0.1.1
Created
Updated
License
N/A
Applies to

Motivation

This Tampermonkey script aims to make articles published on Wechat more readable on desktop screens, which usually have more width than height.

The default layout of Wechat article is clearly in favour of mobile phones, which are held in hands and have more height than width.

Installation

It has been published and synced to GreasyFork. Check it out!

How to Use It

The default configuration will set the max-width to 1200px. If fitting the screen width is desired, modify the code

set_max_width("1200px");

to

set_max_width("none");

Mitigate the Side Effect

When the element of the article body is freed from max-width = 677px, the QR code might obstruct it. A simple fix of hidding the QR code element is then applied to mitigate this.