Skip to content

Instantly share code, notes, and snippets.

@tlxue
Created June 12, 2011 14:50
Show Gist options
  • Save tlxue/1021632 to your computer and use it in GitHub Desktop.
Save tlxue/1021632 to your computer and use it in GitHub Desktop.
zhihu字体增大测试
javascript:(function(){var d=document,i,title=d.getElementsByClassName('mf'),action=d.getElementsByClassName('de'),para=d.getElementsByClassName('sk'),sub_action=d.getElementsByClassName('vf');function changeFontSize(element,size){for(i=0;i<element.length;i++){element[i].style.fontSize=size;}}
changeFontSize(title,'15px');changeFontSize(action,'13px');changeFontSize(para,'14px');changeFontSize(sub_action,'14px');})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment