Skip to content

Instantly share code, notes, and snippets.

@shuding
Last active August 29, 2015 14:01
Show Gist options
  • Save shuding/ae54a29950b62d6d67e3 to your computer and use it in GitHub Desktop.
Save shuding/ae54a29950b62d6d67e3 to your computer and use it in GitHub Desktop.
Replace stu auth page css to dandu css.
n = document.getElementsByTagName('link').length;
for(i = 0; i < n; ++i)
document.getElementsByTagName('link')[0].remove();
cssChild = document.createElement('link');
cssChild.type = 'text/css';
cssChild.rel = 'stylesheet';
cssChild.href = 'http://stu.fudan.edu.cn/dandu/css/dandu-style.css';
document.getElementsByTagName('head')[0].appendChild(cssChild);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment