Repository navigation
Closed
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists
Description
Prerequisites
- This is not a support issue or a question
- I performed a cursory search of the issue tracker to avoid opening a duplicate issue
- I am running the latest version of uBlock Origin
I tried to reproduce the issue when...
- uBO is the only extension
- uBO with default lists/settings
- using a new, unmodified browser profile
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
{
"timeStamp": 1643201137402,
"version": "1.40.8",
"userSettings": {
"advancedUserEnabled": true,
"cloudStorageEnabled": true,
"externalLists": "https://anti-ad.net/adguard.txt\nhttps://raw.githubusercontent.com/cxw620/AdGuard-Rules/main/wjx-AdGuard.txt\nhttps://raw.githubusercontent.com/cxw620/AdGuard-Rules/main/wjx-AdGuardHome-strict.txt",
"importedLists": [
"https://anti-ad.net/adguard.txt",
"https://raw.githubusercontent.com/cxw620/AdGuard-Rules/main/wjx-AdGuard.txt",
"https://raw.githubusercontent.com/cxw620/AdGuard-Rules/main/wjx-AdGuardHome-strict.txt"
],
"popupPanelSections": 31
},
"selectedFilterLists": [
"user-filters",
"ublock-filters",
"ublock-badware",
"ublock-privacy",
"ublock-abuse",
"ublock-unbreak",
"adguard-generic",
"adguard-mobile",
"easylist",
"adguard-spyware",
"adguard-spyware-url",
"block-lan",
"easyprivacy",
"urlhaus-1",
"curben-phishing",
"curben-pup",
"adguard-annoyance",
"adguard-social",
"fanboy-thirdparty_social",
"fanboy-cookiemonster",
"fanboy-annoyance",
"fanboy-social",
"ublock-annoyances",
"dpollock-0",
"mvps-0",
"plowe-0",
"CHN-0",
"https://raw.githubusercontent.com/cxw620/AdGuard-Rules/main/wjx-AdGuard.txt",
"https://raw.githubusercontent.com/cxw620/AdGuard-Rules/main/wjx-AdGuardHome-strict.txt",
"https://anti-ad.net/adguard.txt"
],
"hiddenSettings": {
"autoUpdatePeriod": 1,
"consoleLogLevel": "info",
"updateAssetBypassBrowserCache": true
},
"whitelist": [
"about-scheme",
"cdn.ctyun.cn",
"chrome-extension-scheme",
"chrome-scheme",
"edge-scheme",
"login.partner.microsoftonline.cn",
"moz-extension-scheme",
"opera-scheme",
"portal.office.com",
"portal.partner.microsoftonline.cn",
"read.celestial-star.ltd",
"uptimerobot.com",
"vivaldi-scheme",
"www.bilibili.com",
"wyciwyg-scheme"
],
"dynamicFilteringString": "behind-the-scene * * noop\nbehind-the-scene * inline-script noop\nbehind-the-scene * 1p-script noop\nbehind-the-scene * 3p-script noop\nbehind-the-scene * 3p-frame noop\nbehind-the-scene * image noop\nbehind-the-scene * 3p noop",
"urlFilteringString": "",
"hostnameSwitchesString": "no-large-media: behind-the-scene false\nno-csp-reports: * true\nno-strict-blocking: passport.biligame.com true",
"userFilters": "! Title: ζ΅θ§ε¨θ‘₯ε
θ§ε\n! Update Time: 2022-01-22 16:18:00\n! Ver.: 1.0.10\n! Update Details\n!! --------------------\n!! ι¦ζ¬‘ζ΄ζ°\n!! --------------------\n! Notes\n!! --------------------\n!! ζ¬θ§εε
ε«δΊζ΅θ§ε¨θ§εοΌιεADBοΌAdGuardοΌublockδ½Ώη¨\n!! --------------------\n\n!! --------------------\n! [ι‘΅ι’θ§ε]\n!! δ»₯δΈδΈΊurlεζ°ζ¦ζͺ\n!! [Baidu]\n||*baidu*$removeparam=rsv_sug1\n||*baidu*$removeparam=rsv_sug2\n||*baidu*$removeparam=rsv_sug3\n||*baidu*$removeparam=rsv_sug4\n||*baidu*$removeparam=rsv_sug5\n||*baidu*$removeparam=rsv_cq\n||*baidu*$removeparam=rsv_dl\n||*baidu*$removeparam=rsv_bp\n||*baidu*$removeparam=rsv_pq\n||*baidu*$removeparam=rsv_enter\n||*baidu*$removeparam=rsv_jmp\n||*baidu*$removeparam=rsv_btype\n||*baidu*$removeparam=rqlang\n||*baidu*$removeparam=oq\n||*baidu*$removeparam=rqid\n||*baidu*$removeparam=rsf\n||*baidu*$removeparam=sa\n||*baidu*$removeparam=bs\n||*baidu*$removeparam=usm\n||*baidu*$removeparam=tn\n||*baidu*$removeparam=dyTabStr\n||*baidu*$removeparam=euri\n||*baidu*$removeparam=lm\n||*baidu*$removeparam=ps\n||*baidu*$removeparam=ct\n||*baidu*$removeparam=cl\n||*baidu*$removeparam=nc\n||*baidu*$removeparam=wrsv_spt\n@@||image.baidu.com$removeparam=tn\n||*baidu*$removeparam=pn\n||*baidu*$removeparam=rn\n||*baidu*$removeparam=rtt\n||*baidu*$removeparam=bsst\n||*baidu*$removeparam=s\n||*baidu*$removeparam=fr\n||*baidu*$removeparam=inputT\n||*baidu*$removeparam=aptstamp\n||*baidu*$removeparam=top\n||*baidu*$removeparam=total_res_num\n||*baidu*$removeparam=frsrcid\n||*baidu*$removeparam=frorder\n||*baidu*$removeparam=lid\n||*baidu*$removeparam=sf_ref\n||*baidu*$removeparam=pcEqid\n||*baidu*$removeparam=fromtitle\n||*baidu*$removeparam=fromid\n||*baidu*$removeparam=ala\n||*baidu*$removeparam=alatpl\n||*baidu*$removeparam=pos\n||*baidu*$removeparam=wfr\n||*baidu*$removeparam=for\n!! [Google]\n$removeparam=iflsig\n$removeparam=ved\n$removeparam=uact\n$removeparam=sclient\n!! [bing]\n||*bing*$removeparam=form\n||*bing*$removeparam=FORM\n||*bing*$removeparam=sp\n||*bing*$removeparam=pq\n||*bing*$removeparam=sc\n||*bing*$removeparam=qs\n||*bing*$removeparam=sk\n||*bing*$removeparam=cvid\n!! --------------------\n!! δ»₯δΈδΈΊεΉΏεζ¦ζͺ\n"
}
Reacted by iam-py-test
Metadata
Metadata
Assignees
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists



Activity
iam-py-test commentedon Jan 26, 2022
I'm not sure, but this may be caused by use of History.replaceState
uBo does not register that a new website was loaded, so can not filter it. I think this is more of a browser issue than a uBo one
uBlock-user commentedon Jan 26, 2022
Only network requests get filtered, cosmetic replacement of url not.
uBlock-user commentedon Jan 26, 2022
Duplicate of #1767
$removeparam=parameter does not work #1767iam-py-test commentedon Jan 26, 2022
Maybe new scriptlet to overwrite History.replaceState:
Edit: uses History.pushState not replaceState
cxw620 commentedon Jan 26, 2022
I found that if i use regular expression like this:

||*baidu*$removeparam=/^[^wu]([^dr]{0,})([^l]{0,}).*/and cancel such function of Baidu:
the page seemed to be forced to reload and ubo works, although i takes more time to finish loading the page
iam-py-test commentedon Jan 26, 2022
If that solution works
cxw620 commentedon Jan 28, 2022
translation is correct. however i found that sometimes such solution didn't work. it really confuses me.