FanPost

How to Modify the CSS of the comments

Hi.
A quick shoutout to Matteo(ASR) and Nemo77 for giving this idea and sharing code.
This post shows how to modify the width of the comments to make it about 15-20% wider. You can experiment it further to however you like. You can download, Tampermonkey on Google Chrome extension. Go to the extension and create a new script.
Add this code
// ==UserScript== // @name New Userscript // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match https://www.chiesaditotti.com/* // @icon https://www.google.com/s2/favicons?domain=chiesaditotti.com // @grant none // ==/UserScript== (function() { 'use strict'; var element = document.getElementsByClassName("l-col__main")[0]; element.style.minWidth="90%"; addGlobalStyle('.l-col__main { min-width: 90% !important; }'); // Your code here... })(); 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); }
Before
Screen-Shot-2021-07-22-at-4-29-04-PM

After
Screen-Shot-2021-07-22-at-4-28-09-PM