Bookmarklet – Change Font on Any Web Page (with options)

  • RESET
  • +
  • -

Bookmarklet Code

change.font
javascript:

var askFontSize = prompt('font.size', '13px');
var askFontFamily = prompt('font.family', 'Verdana');
askFontSize = askFontSize.replace('px', '');

var myCSS = ' p, p *, ul li, ul li *, ol li, ol li * { font-size: ' + askFontSize + 'px !important; font-family: ' + askFontFamily + ', Tahoma, sans-serif !important; line-height: 1.62 !important; } ';

var newStyle = document.createElement('style'); newStyle.innerHTML = myCSS; document.body.appendChild(newStyle);

/* provided by blog.ajDeskta.com */

void(0);

Leave a Reply