Retina Twitter

This is a bastardizatoin of Frederick888's Wider Twitter script designed to make maximum use of a retina Macbook 15 inch display.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name				Retina Twitter
// @namespace			http://google.com
// @version				0.2
// @description			This is a bastardizatoin of Frederick888's Wider Twitter script designed to make maximum use of a retina Macbook 15 inch display.
// @include				*://twitter.com/*
// @copyright			Nobody
// @require				https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js
// ==/UserScript==

// CSS
CSSElement = '<style id="myTwitterMod" type="text/css">div#page-container.wrapper{width:1310px!important;}div.content-main[role="main"]{width:1800px!important;}#page-container.wrapper>.permalink-footer{width:900px!important;margin-left:auto!important;margin-right:auto!important;}div.permalink.stream-uncapped{margin-left:auto!important;margin-right:auto!important;}div.profile-card.profile-page-header{right:100px!important;}div.profile-card,.profile-header-mask,div.profile-header-inner-overlay,div.modal-content.clearfix{width:700px!important;}li.stream-user-gallery{width:564px!important;margin-left:auto!important;margin-right:auto!important;}.content-main.user-similarities-list{width:700px!important;margin-right:100px!important;}</style>';
$('head').append(CSSElement);

// Move the right-dashboard
function change() {
	var parent = $('.dashboard-right');
	var users = $('.dashboard-right>div:first-child');
	var footer = $('.dashboard-right>div:last-child');

	$('.dashboard-left').append(users);
	$('.dashboard-left').append(footer);
	parent.remove();
}
var oldLoc = '';
change();
setInterval(function() {
	if(location.href != oldLoc) {
		oldLoc = location.href;
		change();
	}
}, 100);