Fix: variable name

This commit is contained in:
liuyihui 2024-11-21 12:06:39 +08:00
parent e6a5e42582
commit 7073022b93
Signed by: fox
GPG Key ID: AA837A7DD1DFACEE

View File

@ -1,7 +1,7 @@
// ==UserScript== // ==UserScript==
// @name Journal Viewer // @name Journal Viewer
// @namespace https://foolishfox.cn // @namespace https://foolishfox.cn
// @version 1.1.0 // @version 1.1.1
// @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/*
@ -23,7 +23,7 @@
// New APS // New APS
let aps_sidebar_n = document.getElementById("sidebar-wrapper"); let aps_sidebar_n = document.getElementById("sidebar-wrapper");
if (aps_sidebar_n) { aps_sidebar.remove(); } 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];