Skip to content

Commit 9b95e05

Browse files
committed
Update pagetual.user.js
1 parent 9bb3463 commit 9b95e05

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Pagetual/pagetual.user.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5742,6 +5742,12 @@
57425742
ruleParser.customRules.unshift(editTemp);
57435743
ruleParser.curSiteRule = editTemp;
57445744
} else {
5745+
if (ruleParser.hpRules) {
5746+
let href = location.href.slice(0, 500);
5747+
ruleParser.hpRules = ruleParser.hpRules.filter(item => {
5748+
return item && !(new RegExp(item.url, "i").test(href) && ruleParser.ruleMatch(item));
5749+
});
5750+
}
57455751
ruleParser.curSiteRule = {};
57465752
isPause = true;
57475753
}
@@ -6804,7 +6810,7 @@
68046810
let sideControllerIconInput = document.createElement("input");
68056811
sideControllerIconInput.style.width = "100%";
68066812
sideControllerIconInput.style.position = "relative";
6807-
sideControllerIconInput.placeholder = "📄";
6813+
sideControllerIconInput.placeholder = "☯️";
68086814
sideControllerIconInput.value = rulesData.sideControllerIcon || '';
68096815
sideControllerIconInput.spellcheck = false;
68106816
sideControllerIconDiv.appendChild(sideControllerIconInput);

0 commit comments

Comments
 (0)