Posted By


IJajan on 12/05/08

Statistics


Viewed 525 times
Favorited by 0 user(s)

douban_theme_js


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // ==UserScript==
  2. // @name douban theme
  3. // @namespace http://userstyles.org
  4. // @description bamboo
  5. // @author chez
  6. // @homepage http://userstyles.org/styles/10693
  7. // @include http://www.douban.com/*
  8. // @include https://www.douban.com/*
  9. // @include http://*.www.douban.com/*
  10. // @include https://*.www.douban.com/*
  11. // ==/UserScript==
  12. (function() {
  13. var css = "@namespace url(http://www.w3.org/1999/xhtml); body {background: #6d6d6d url(http://i3.6.cn/cvbnm/29/33/18/45bbd9c8b282c1488a43ad0202b6061f.jpg) repeat fixed 0 0 !important;}#maxw, #max_campus {border: 6px solid #5d5d5d !important; -moz-border-radius: 20px !important;}#max_campus {width: 720px !important;}#max_campus .fdiv{margin-left:10px !important; margin-right: 10px !important; margin-bottom: 2px !important;}#campus_header img {margin-left: 3px !important;}#campus_header {-moz-border-radius-topleft: 20px !important; -moz-border-radius-topright: 20px !important;}#max_campus ol {list-style-image: url(http://i3.6.cn/cvbnm/ed/55/d8/a9929f6d2b300ffe769b24bfa27f8ddb.jpg) !important; margin-bottom: 20px !important;}#max_campus ol li {margin-left: 30px !important;}#searbar img,#header img, h3 img, h3 img:hover{border: none !important;}a{outline: none !important;}a:active{color: #EB9000 !important;}.fdiv, .obs_oneline dt{height: auto !important;}#subnav{padding: 0 5px 0 2px !important;}.thispage{color: #EB9000;}";
  14. if (typeof GM_addStyle != "undefined") {
  15. GM_addStyle(css);
  16. } else if (typeof addStyle != "undefined") {
  17. addStyle(css);
  18. } else {
  19. var heads = document.getElementsByTagName("head");
  20. if (heads.length > 0) {
  21. var node = document.createElement("style");
  22. node.type = "text/css";
  23. node.appendChild(document.createTextNode(css));
  24. heads[0].appendChild(node);
  25. }
  26. }
  27. })();

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.