Displays full video titles on rumble.

Untruncates video titles

// ==UserScript==
// @name        Displays full video titles on rumble.
// @namespace   edisondotme
// @version     
// @description Untruncates video titles
// @author      edisondotme
// @license GPL
// @match        *://rumble.com/*
// @grant        none
// ==/UserScript==


(function() {
    'use strict';

    // Modify inline stylesheet
    modifyInlineStylesheet();

    function modifyInlineStylesheet() {
        // Get all <style> elements in the <head>
        const styleElements = document.head.getElementsByTagName('style');

        // Loop through each <style> element
        for (const styleElement of styleElements) {
            // Get the CSS text content
            const cssText = styleElement.textContent;

            // Replace the CSS rule
            const modifiedCssText = cssText.replace(/.clamp-2{-webkit-line-clamp:2}/g, '.clamp-2{/*! -webkit-line-clamp:2 */}');

            // Update the CSS text content
            if (modifiedCssText !== cssText) {
                styleElement.textContent = modifiedCssText;
            }
        }
    }
})();