Old Reddit Auto Expand Images and Post Text

Automatically expands images and post text on old Reddit feeds.

// ==UserScript==
// @name         Old Reddit Auto Expand Images and Post Text
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Automatically expands images and post text on old Reddit feeds.
// @author       0nenzus
// @match        https://old.reddit.com/*
// @grant        none
// @license      none
// ==/UserScript==

(function() {
    'use strict';



    // Function to expand post text
    function expandPostText() {
        const postElements = document.querySelectorAll('.expando-button.collapsed');
        postElements.forEach((element) => {
            element.click();
        });
    }


    // Auto expand post text
    expandPostText();
})();