Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Add display: contents #7

Open
ltguillaume opened this issue Feb 8, 2023 · 1 comment
Open

Add display: contents #7

ltguillaume opened this issue Feb 8, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ltguillaume
Copy link
Contributor

ltguillaume commented Feb 8, 2023

I've been using this for a while now, and found that many issues with adding span elements (e.g. them being organized vertically, or not being rendered at the same vertical position as the text around them, or disappearing spaces), can be solved by adding display: contents. So, addng

// @grant       GM_addStyle

and

GM_addStyle(`
    span[style*="bolder"] {
        display: contents !important;
    }
`);

solves many issues.

A better way of doing this is to replace span.style.fontWeight = 'bolder'; with span.className = 'bread'; and to add

GM_addStyle(`
    span.bread {
        display: contents !important;
        font-weight: bolder;
    }
`);
@tobyxdd tobyxdd self-assigned this Feb 12, 2023
@tobyxdd tobyxdd added the enhancement New feature or request label Feb 12, 2023
@tobyxdd
Copy link
Owner

tobyxdd commented Apr 3, 2023

Hi Guillaume,

Unfortunately I won't be maintaining this project anymore. Since you've already made some great improvements to your fork, I'm archiving it and linking to your repo in the README. Thanks for your contributions!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants