Greasy Fork

Greasy Fork is available in English.

Vk Design (Firefox version)

возвращает старый дизайн вконтакте

当前为 2016-09-04 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Vk Design (Firefox version)
// @namespace   vk.com
// @include     https://vk.com/*
// @version     0.7
// @description возвращает старый дизайн вконтакте
// @grant       none
// ==/UserScript==


function addGlobalStyle(css) {
		try {
			var elmHead, elmStyle;
			elmHead = document.getElementsByTagName('head')[0];
			elmStyle = document.createElement('style');
			elmStyle.type = 'text/css';
			elmHead.appendChild(elmStyle);
			elmStyle.innerHTML = css;
		} catch (e) {
			if (!document.styleSheets.length) {
				document.createStyleSheet();
			}
			document.styleSheets[0].cssText += css;
		}
	}

var css = "  \
  body {background: #FFF; font-family: tahoma, arial, verdana, sans-serif;} \
  #page_body {font-size: 15px;} \
 \
 \
/************ Width ************/ \
  #page_layout {} \
  #page_body {border-left: 1px solid #D9E0E7;border-right: 1px solid #D9E0E7; box-sizing: border-box; \
  margin: 35px 15px 0 0;} \
  div#content { padding: 0 10px;} \
/************ HEADER ***********/ \
  #page_header_cont {height: 40px; left: auto; position: absolute;} \
  #page_header_cont .back {height: 40px; border: none; border-radius: 0 0 10px 10px;} \
  #page_header_wrap {height: 40px;} \
  #page_header {height: 40px; padding: 0;} \
  #page_header input.text.ts_input {width: 200px; background-color: #FFf;} \
  .top_home_link {padding-left: 15px; height: 40px; width: 142px;} \
  #top_nav>div {height: 40px;} \
  .top_nav_link:hover, .top_nav_link.active {border-bottom-right-radius: 10px; height: 40px;} \
  .top_nav_link {line-height: 40px;} \
  #page_header input.text.ts_input {border-radius: 0;} \
  .top_profile_img {display: none;} \
  .top_profile_name {padding: 0;} \
  .top_nav_btn {height: 40px;} \
  .ts_cont_wrap {left: 155px; width: 201px;} \
  a.ts_contact {padding: 8px;} \
  .ts_contact_name {width: 141px;} \
  #top_nav > div .fl_l {padding: 0;} \
/*** LOGO ***/ \
  #page_header_cont .top_home_link {padding: 0 0;} \
  #page_header{margin: 0; padding:0;} \
  /*** SIDEBAR ***/ \
  #side_bar .more_div {margin: 3px 0 0; padding-top: 3px; border-top: 1px solid #E7EAED; width: 136px;} \
  #side_bar_inner {position:absolute !important} \
  #side_bar .left_fixer {padding-left: 6px;} \
  #side_bar .left_label.inl_bl {padding: 4px 0; height: 18px;} \
  #side_bar .left_label {font-size: 11px; line-height: inherit;} \
  #side_bar .left_icon, #side_bar .more_div, .left_menu_nav_wrap, \
  #side_bar .left_settings, #side_bar .ads_left  {display: none;} \
  #side_bar_inner ol {display:flex;flex-wrap:wrap} \
  #side_bar_inner ol li {order:100} \
  #side_bar_inner ol #l_pr {order:1} \
  #side_bar_inner ol #l_fr {order:2} \
  #side_bar_inner ol #l_ph {order:3} \
  #side_bar_inner ol #l_vid {order:4} \
  #side_bar_inner ol #l_aud {order:5} \
  #side_bar_inner ol #l_msg {order:6} \
  #side_bar_inner ol #l_gr {order:7} \
  #side_bar_inner ol #l_nwsf {order:8} \
  #side_bar_inner ol #l_ntf{order:9} \
  #side_bar_inner ol #l_fav {order:10} \
  #side_bar_inner ol #l_set {order:11} \
  #side_bar_inner ol .more_div.l_main {order:12} \
  #side_bar_inner ol #l_ap {order:13} \
  #side_bar_inner ol #l_doc {order:14} \
  #side_bar_inner ol #l_ads {order:15} \
  #side_bar_inner ol #l_apm {order:16} \
  #side_bar_inner ol .more_div {order:17} \
  #side_bar_inner ol .l_comm {order:18} \
  #side_bar ol li {width: 136px; padding:3px;margin:1px} \
  #side_bar .left_count_wrap {font-size:10px; padding:3px; margin:1px; height:auto;line-height:inherit;} \
  #side_bar .left_count:before{content:\"+ \" !important} \
  #side_bar .inl_bl{line-height:130%}"

addGlobalStyle(css);