所以我花了一點時間研究 PTTChrome 的顯示方法,發現還蠻好修復的,不過手機上就不能保證了
調整結果:
感覺好多了 ^_^
以下是 Tampermonkey 腳本,有需要可以自己拿去
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Ptt 網頁版精華區頁面修復 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Ptt 網頁版精華區的格式會跑掉 | |
// @author danny50610 | |
// @match https://www.ptt.cc/man/* | |
// @grant none | |
// ==/UserScript== | |
function addGlobalStyle(css) { | |
var head, style; | |
head = document.getElementsByTagName('head')[0]; | |
if (!head) { return; } | |
style = document.createElement('style'); | |
style.type = 'text/css'; | |
style.innerHTML = css; | |
head.appendChild(style); | |
} | |
(function() { | |
'use strict'; | |
addGlobalStyle("\ | |
.m-ent { \ | |
padding: 0; \ | |
}\ | |
.title a { \ | |
white-space: pre;\ | |
font-family: MingLiu, SymMingLiU, monospace;\ | |
text-decoration: none;\ | |
display: block;\ | |
font-size: 1.75rem;\ | |
line-height: 1.75rem;\ | |
}\ | |
"); | |
})(); |
沒有留言:
張貼留言