Reset Style
Verze ze dne
// ==UserScript==
// @name sass-lang.com TOC layout
// @namespace https://xianghongai.github.io/
// @version 0.0.1
// @description Reset Style
// @author Nicholas Hsiang
// @icon https://xinlu.ink/favicon.ico
// @match http*://sass-lang.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var css = '.complementary.content-secondary {position: fixed; right: 10%; bottom: 10%; width: auto; } #toc {position: fixed; right: 18px; bottom: 0; top: 50px; width: 266px; max-width: 266px; padding-left: 10px; padding-right: 10px; } #search a.full_list_link { margin-right: 5px; } #filecontents {padding-right: 300px; } #search {position: fixed; right: 13px; } #search_frame {position: fixed; }',
head = document.head || document.getElementsByTagName('head')[0],
style = document.createElement('style');
style.type = 'text/css';
if (style.styleSheet){
style.styleSheet.cssText = css;
} else {
style.appendChild(document.createTextNode(css));
}
head.appendChild(style);
})();