// ==UserScript== // @name hide LR ScienceDirect // @namespace http://tampermonkey.net/ // @version 0.1 // @description sciencedirect 隐藏左右两列增宽中间部分 // @author barlow // @license None // @match https://www.sciencedirect.com/science/article* // @icon https://www.google.com/s2/favicons?sz=64&domain=sciencedirect.com // @grant none // @downloadURL none // ==/UserScript== (function() { 'use strict'; try{ var left_pannel = document.getElementsByClassName("TableOfContents u-margin-l-bottom"); left_pannel[0].style.display="none"; //var right_pannel = document.getElementsByClassName("RelatedContent"); //right_pannel[0].style.display="none"; var width = document.getElementsByClassName("col-lg-12 col-md-16 pad-left pad-right"); width[0].style.width ="100%" //这里随意更改 } catch(e){ console.log(e) } })();