Skip to content

Instantly share code, notes, and snippets.

@JTBrinkmann
Created May 26, 2020 15:09
Show Gist options
  • Save JTBrinkmann/6f354c75dccbfe3e14d885faeacc6fbe to your computer and use it in GitHub Desktop.
Save JTBrinkmann/6f354c75dccbfe3e14d885faeacc6fbe to your computer and use it in GitHub Desktop.
javascript:$('body').css('color-adjust','exact');fetch('/css/bootstrap.min.css').then(r=>r.text()).then(b => { b = b.replace(/@media\s+print\s*\{[\s\S]*?\}\s*\}/g, '').replace(/url\(\./g,'url(/css/.'); $a = $('link[href="/css/bootstrap.min.css"]').attr('media', 'none'); $('<style>').text(b).insertAfter($a) })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment