NX_DOC

调整 https://docs.sw.siemens.com/的页面,使他更适合 1980*1050 分辨率的

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         NX_DOC
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  调整 https://docs.sw.siemens.com/的页面,使他更适合 1980*1050 分辨率的
// @author       [email protected]
// @match        https://docs.sw.siemens.com/*
// @match        http://localhost:5000/*
// @icon         https://www.google.com/s2/favicons?domain=tampermonkey.net
// @grant        unsafaWindow
// @ require      http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js
// @run-at       document-end


// ==/UserScript==

(function() {
    'use strict';
$(".body-fixed-top").css({"padding-top":"0px"}); //调整body的边距

    //隐藏头部内容
$("disw-header-v2").css({"display":"none"});
$("#root .disw-sub-header").css({"display":"none"});
$("#root .doc-toolbar").css({"display":"none"});
$("#topic-navigator").css({"display":"none"});


 $(".disw-breadcrumb ol>li:first-child").css({"padding-top":"0px"});

// 把整个页面的字体调大1.5
    var css = 'body { font-size: 1.5em !important; }';

    var style = document.createElement('style');
    style.type = 'text/css';
    style.appendChild(document.createTextNode(css));

    var head = document.head || document.getElementsByTagName('head')[0];
    head.appendChild(style);

//修改内容页面的高度
 var targetDiv = document.querySelector('.doc-sidebar .doc-topics');
    if (targetDiv) {
        targetDiv.style.height = '100vh';
    }
 var targetDiv1 = document.querySelector('#doc-main > div > div.pos-r');
    if (targetDiv1) {
        targetDiv1.style.height = '100vh';
    }

})();