Twitter

Twitter voller Bildschirm - 4k Untersütztung

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

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

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

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

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

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

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

Advertisement:

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

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

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

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

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

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

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

Advertisement:

"use strict";

// ==UserScript==
// @name        Twitter
// @description Twitter voller Bildschirm - 4k Untersütztung
// @version     1.0.1
// @author      Nexarius
// @include     *twitter.com*
// @require     https://code.jquery.com/jquery-3.2.1.min.js
// @grant       none
// @namespace https://greasyfork.org/users/212703
// ==/UserScript==

var styleSheet = `
.AppContainer {
    max-width:90%;
}
body:not(.ProfilePage) #page-container {
    width:90%;
}
.ProfileCanopy-header {
    max-width:100vw;
}
.dashboard {
    width:25%;
}
#permalink-overlay-dialog,
#page-container > #timeline {
    width:calc(50% - 20px);
}
.permalink-container {
    width:100%;
}
.PermalinkOverlay-modal {
    left:36%;
}
.AdaptiveMedia {
    max-width:100%;
    max-height:25vw !important;
}
.AdaptiveMedia-triplePhoto {
    width:100%;
    height:25vw;
}
.js-macaw-cards-iframe-container {
    min-height:unset !important;
}
`;

(function () {
  var s = document.createElement('style');
  s.type = "text/css";
  s.innerHTML = styleSheet;
  (document.head || document.documentElement).appendChild(s);
})();