We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent beb14fa commit 6826b49Copy full SHA for 6826b49
1 file changed
Kill Baidu AD/Kill Baidu AD.user.js
@@ -176,8 +176,8 @@
176
}
177
setTimeout(()=>{clearAD();},2000);
178
if(killBaijiaType==1){
179
- if(location.href.indexOf("+-baijiahao")==-1){
180
- location.href=location.href.replace(/(&wd=.*?)(&|$)/,'$1+-baijiahao&');
+ if(location.href.split("wd=")[1].split("&")[0].indexOf("+-baijiahao")==-1){
+ location.href=location.href.replace(/((&|\?)wd=.*?)(&|$)/,'$1+-baijiahao&');
181
182
document.addEventListener('DOMContentLoaded', function () {
183
if(location.href.indexOf("+-baijiahao")!=-1){
0 commit comments