• RA2lover@burggit.moeOP
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 year ago

    There’s currently no restriction to the size of images in titles. Here’s a tampermonkey script adding that, which is probably not going to work for other types of embed fuckery:

    // ==UserScript==
    // @name         image title exploit fix
    // @version      -1e10
    // @description  limits size of images in post titles on burggit
    // @author       RA2lover
    // @match        https://burggit.moe/*
    // @icon         https://www.google.com/s2/favicons?sz=64&domain=burggit.moe
    // @grant        GM_addStyle
    // ==/UserScript==
    
    (function() {
        'use strict';
    
        var css=[
            " .d-inline img{                     ",
            " max-height: 2em        !important; ",
            " max-width: 2em         !important; ",
            " object-fit: scale-down !important; ",
            "}                                   "
        ].join("\n");
    
        GM_addStyle(css);
    
    })();
    
  • Nazrin@burggit.moe
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    RA2lover came up with a tampermonkey script fix that I’ll try integrating with burggit enhancement suite tomorrow.