-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ublockorigin cannot filter the tracking params in url in some particular case (filter function -> $removeparam) #1951
Comments
I'm not sure, but this may be caused by use of History.replaceState |
Only network requests get filtered, cosmetic replacement of url not. |
Duplicate of #1767 |
Maybe new scriptlet to overwrite History.replaceState: (function(){
History.prototype.replaceState = function(stateObj, title,url){
if(url !== ""){
location.href = url
}
}
History.prototype.pushState = function(stateObj, title,url){
if(url !== ""){
location.href = url
}
}
})() Edit: uses History.pushState not replaceState |
If that solution works |
Is it "Search settings" -> "Do you want to display search results in real time as you type" (if translated correctly)? |
translation is correct. however i found that sometimes such solution didn't work. it really confuses me. |
Prerequisites
I tried to reproduce the issue when...
URL(s) where the issue occurs
baidu.com
Describe the issue
As shown in the issue title.
ublockorigin cannot filter the tracking params in url in some particular case. (filter function -> $removeparam)
It is hard to describe in English for I am Chinese, so I describe the issue in details with some screenshots. Please refer to them.
Screenshot(s)
Notes
In my opinion, that ublockorigin my not filter tracking params in URL twice until a new tab is created causes such issue.
Reasons and examples were also described in screenshots.
Configuration
The text was updated successfully, but these errors were encountered: