Greasy Fork is available in English.

Wechat article desktop layout

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

Autor
ThunderMikey
Denne inštalácií
1
Celkový počet inštalácií
202
Hodnotenie
2 0 1
Verzia
0.1.1
Vytvorené
11.08.2019
Aktualizované
12.08.2019
Licencia
neuvedené
Spustiť na

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.