douban_global_nav

align global nav's items to center

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name        douban_global_nav
// @namespace   
// @description align global nav's items to center
// @include      https://*.douban.com/*
// @include      http://*.douban.com/*
// @version     2.1
// ==/UserScript==

var top_bd = document.getElementsByClassName("bd")[0];
top_bd.style.width = "980px";
top_bd.style.margin = "0 auto";
top_bd.style.padding = "0 0 0 10px";
var top_menu = document.getElementById("db-global-nav");
top_menu.style.borderBottom = "3px solid #F8D575";