Fix the damn width in typescript docs.
当前为
// ==UserScript==
// @name TypeScript Width Fix
// @namespace https://www.typescriptlang.org
// @version v1.2
// @description Fix the damn width in typescript docs.
// @author erucix
// @match https://www.typescriptlang.org/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=typescriptlang.org
// @grant none
// @license MIT
// ==/UserScript==
(function() {
'use strict';
window.onload = function() {
let article = document.querySelector(".whitespace.raised");
if(article){
article.setAttribute("style", "width: -webkit-fill-available;");
}
}
})();