Gitee宽屏展示

为了可以展示更多的代码,不浪费页面空间,几行代码实现了页面宽屏效果

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Gitee宽屏展示
// @namespace    http://www.5jianzhan.com/
// @version      0.2
// @description  为了可以展示更多的代码,不浪费页面空间,几行代码实现了页面宽屏效果
// @author       ITLDG
// @match        https://gitee.com/*
// @namespace    https://greasyfork.org/scripts/429299
// @icon         https://assets.gitee.com/assets/favicon-9007bd527d8a7851c8330e783151df58.ico
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    $(".ui.container").css("width","unset");
    let width=$(".ui.container").width();
    //console.log('width',width)
    if(width>1400)
    {

       if($(".ui.container").width()>1600)
       {
           $(".dashboard-content__show").css("cssText","width:1280px!important;")
       }else
       {
           $(".dashboard-content__show").css("cssText","width:880px!important;")
       }
    }
})();