mirror of
https://github.com/YiHui-Liu/TemperMonkey-Script.git
synced 2024-12-22 18:34:08 +08:00
Compare commits
No commits in common. "7073022b931732a9bdc49defccad0d40c4d718c1" and "51c7a621f468ea8083768c83fd597b8d2a723ee0" have entirely different histories.
7073022b93
...
51c7a621f4
@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Journal Viewer
|
// @name Journal Viewer
|
||||||
// @namespace https://foolishfox.cn
|
// @namespace https://foolishfox.cn
|
||||||
// @version 1.1.1
|
// @version 1.0.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/*
|
||||||
@ -15,25 +15,27 @@
|
|||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
// Old APS
|
// APS
|
||||||
let aps_sidebar = document.getElementById("article-sidebar");
|
let aps_sidebar = document.getElementById("article-sidebar");
|
||||||
if (aps_sidebar) { aps_sidebar.remove(); }
|
if (aps_sidebar)
|
||||||
|
aps_sidebar.remove();
|
||||||
let aps_content = document.getElementById("article-content");
|
let aps_content = document.getElementById("article-content");
|
||||||
if (aps_content) { aps_content.style.width = "100%"; }
|
if (aps_content)
|
||||||
|
aps_content.style.width = "100%";
|
||||||
// New APS
|
|
||||||
let aps_sidebar_n = document.getElementById("sidebar-wrapper");
|
|
||||||
if (aps_sidebar_n) { aps_sidebar_n.remove(); }
|
|
||||||
|
|
||||||
// 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_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 = "75%"; }
|
if (sd_content)
|
||||||
|
sd_content.style.width = "75%";
|
||||||
|
|
||||||
// Nature
|
// Nature
|
||||||
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_content)
|
||||||
|
nature_content.style.width = "100%";
|
||||||
})();
|
})();
|
||||||
|
Loading…
Reference in New Issue
Block a user