When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}| javascript: (() => { | |
| /*Apache2 License, Brian Ballsun-Stanton*/ | |
| const hostName = window.location.hostname; | |
| const currentDomain = hostName.substring(hostName.lastIndexOf(".", hostName.lastIndexOf(".") - 1) + 1); | |
| /*https://stackoverflow.com/a/19937750*/ | |
| if (currentDomain != "newsblur.com"){ | |
| const newTarget ="https://12ft.io/"+window.location.href; | |
| window.location.href=newTarget; | |
| } else { | |
| Element.prototype.appendAfter = function(element) { |