Greasy Fork is available in English.

AO3 HS Fix

Change `width` to `max-width` on Homestuck fics on AO3.

// ==UserScript==
// @name         AO3 HS Fix
// @namespace    https://greasyfork.org/en/scripts/444424-ao3-hs-fix
// @version      0.2
// @description  Change `width` to `max-width` on Homestuck fics on AO3.
// @author       You
// @match        https://archiveofourown.org/*
// @license MIT
// @icon         data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant        none
// ==/UserScript==

(function () {
  "use strict";

  // Your code here...
  const blocks = document.getElementById("workskin").getElementsByClassName("block");
  if (blocks) {
    for (let i = 0; i < blocks.length; i++) {
      blocks[i].style.width = "unset";
      blocks[i].style.maxWidth = "650px";
    }
  }
})();