Skip to content

Instantly share code, notes, and snippets.

@dungsaga
Last active February 9, 2025 10:37
Show Gist options
  • Save dungsaga/786b365fd32bb625960661c7d2bd993f to your computer and use it in GitHub Desktop.
Save dungsaga/786b365fd32bb625960661c7d2bd993f to your computer and use it in GitHub Desktop.
fix invisible titles in osnews.com

it's a bug that only happens when the article starts with a blockquote tag. OSNews is working on a fix (https://mstdn.social/@osnews/113958357150579777)

Fixes (can be applied in browser console):

  • add something before the blockquote jQuery('.front-view-content.full-post > blockquote:first-child').parent().prepend('<p>&nbsp;</p>')

  • a better fix from https://mstdn.social/@[email protected]/113971810490442290 jQuery('.front-view-content.full-post').css('clear','both')

  • yet another fix: jQuery('.front-view-content.full-post > blockquote').css('clear','both')

it's better to fix with a web extension that can customize websites (such as Stylus, Stylish, uBlockOrigin …), you can also fix it by adding attribute clear:both for .front-view-content.full-post or .front-view-content.full-post > blockquote

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment