NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Format Confluence Tables // @author Mark Wiseman // @namespace https://openuserjs.org/users/mawiseman // @description Formats tables to remove scoll bars and page properties layout issues // @icon https://wac-cdn-2.atlassian.com/image/upload/f_auto,q_auto/assets/img/favicons/atlassian/apple-touch-icon-57x57.png // @copyright 2021, wiseman.net.au // @version 1.0.7 // @license MIT // @grant none // @match https://*.jira.com/wiki/* // @match https://*.atlassian.net/wiki/* // ==/UserScript== $(document).ajaxStop(function () { // It upsets me I am using timouts here // I haven't figured out what to use to handle the confluence "finish render" event setTimeout(FixTableLayout, 2000); }) // Remove all colgroup widths except the first function FixTableLayout() { console.log('FixTableLayout'); // Trialing.. downside is you can never set any col widths $('colgroup').remove(); }