mirror of
https://github.com/YiHui-Liu/TemperMonkey-Script.git
synced 2024-12-23 02:54:08 +08:00
Compare commits
No commits in common. "d64c3b7a133df3019d347b72a51baeaae3dc016e" and "dedb92f2abba750c14711154db105fc28212591a" have entirely different histories.
d64c3b7a13
...
dedb92f2ab
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Journal Viewer
|
// @name Journal Viewer
|
||||||
// @namespace https://foolishfox.cn
|
// @namespace https://foolishfox.cn
|
||||||
// @version 1.2.2
|
// @version 1.2.0
|
||||||
// @description Optimize the online reading experience of journal articles
|
// @description Optimize the online reading experience of journal articles
|
||||||
// @author YiHui-Liu (foolishfox)
|
// @author YiHui-Liu (foolishfox)
|
||||||
// @match https://journals.aps.org/*
|
// @match https://journals.aps.org/*
|
||||||
@ -19,10 +19,8 @@ function remove_science_direct() {
|
|||||||
// Science Direct
|
// Science Direct
|
||||||
let sd_sidebar = document.getElementsByClassName("u-display-block-from-md col-lg-6 col-md-8 pad-right u-padding-s-top")[0];
|
let sd_sidebar = document.getElementsByClassName("u-display-block-from-md col-lg-6 col-md-8 pad-right u-padding-s-top")[0];
|
||||||
if (sd_sidebar) { sd_sidebar.remove(); }
|
if (sd_sidebar) { sd_sidebar.remove(); }
|
||||||
let sd_toc = document.getElementsByClassName("u-display-block-from-lg col-lg-6 u-padding-s-top sticky-table-of-contents")[0];
|
|
||||||
if (sd_toc) { sd_content.style.width = "15%"; }
|
|
||||||
let sd_content = document.getElementsByClassName("col-lg-12 col-md-16 pad-left pad-right u-padding-s-top")[0];
|
let sd_content = document.getElementsByClassName("col-lg-12 col-md-16 pad-left pad-right u-padding-s-top")[0];
|
||||||
if (sd_content) { sd_content.style.width = "85%"; }
|
if (sd_content) { sd_content.style.width = "75%"; }
|
||||||
}
|
}
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
@ -42,7 +40,7 @@ function remove_science_direct() {
|
|||||||
let nature_sidebar = document.getElementsByClassName("c-article-extras u-hide-print")[0];
|
let nature_sidebar = document.getElementsByClassName("c-article-extras u-hide-print")[0];
|
||||||
if (nature_sidebar) { nature_sidebar.remove(); }
|
if (nature_sidebar) { nature_sidebar.remove(); }
|
||||||
let nature_content = document.getElementsByClassName("c-article-main-column u-float-left js-main-column")[0];
|
let nature_content = document.getElementsByClassName("c-article-main-column u-float-left js-main-column")[0];
|
||||||
if (nature_content) { nature_content.style.width = "100%"; }
|
if (nature_contMDPIent) { nature_content.style.width = "100%"; }
|
||||||
|
|
||||||
// MDPI
|
// MDPI
|
||||||
let mdpi_help = document.getElementsByClassName("middle-column__help")[0];
|
let mdpi_help = document.getElementsByClassName("middle-column__help")[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user