Fix-update WSJ (pro)

This commit is contained in:
magnolia1234 2020-06-28 19:15:46 +02:00
parent b7b4d8e4fa
commit ba75398773

View File

@ -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?');