From ba75398773b2c6b7fccb2cb2be0d8873b6da62f1 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sun, 28 Jun 2020 19:15:46 +0200 Subject: [PATCH] Fix-update WSJ (pro) --- contentScript.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contentScript.js b/contentScript.js index 6843288..d8cd085 100644 --- a/contentScript.js +++ b/contentScript.js @@ -123,7 +123,8 @@ else if (matchDomain("wsj.com")) { document.addEventListener('DOMContentLoaded', () => { let url = window.location.href; let snippet = document.querySelector('.snippet-promotion'); - if (snippet) { + let wsj_pro = document.querySelector('meta[name="page.site"][content="wsjpro"]'); + if (snippet || wsj_pro) { if (!window.location.hash) { if (url.includes('?')) { window.location.href = url.replace('?', '#refreshed?');