From 235b60bb41fc9c598ce6a0ffd0b5f02b42298ad4 Mon Sep 17 00:00:00 2001 From: YiHui Liu Date: Fri, 13 Dec 2024 23:31:17 +0800 Subject: [PATCH] Fix: typo --- JournalViewer | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JournalViewer b/JournalViewer index b0f0467..0dde881 100644 --- a/JournalViewer +++ b/JournalViewer @@ -1,7 +1,7 @@ // ==UserScript== // @name Journal Viewer // @namespace https://foolishfox.cn -// @version 1.2.0 +// @version 1.2.1 // @description Optimize the online reading experience of journal articles // @author YiHui-Liu (foolishfox) // @match https://journals.aps.org/* @@ -40,7 +40,7 @@ function remove_science_direct() { let nature_sidebar = document.getElementsByClassName("c-article-extras u-hide-print")[0]; if (nature_sidebar) { nature_sidebar.remove(); } let nature_content = document.getElementsByClassName("c-article-main-column u-float-left js-main-column")[0]; - if (nature_contMDPIent) { nature_content.style.width = "100%"; } + if (nature_content) { nature_content.style.width = "100%"; } // MDPI let mdpi_help = document.getElementsByClassName("middle-column__help")[0];