mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 17:17:57 +01:00
Work around instances of over-encoded subscription URLs
Related feedback: - https://github.com/uBlockOrigin/uBlock-issues/issues/763#issuecomment-691696716
This commit is contained in:
parent
066f06745b
commit
714f07dc25
1 changed files with 3 additions and 1 deletions
|
@ -57,7 +57,9 @@ const onMaybeSubscriptionLinkClicked = function(ev) {
|
|||
|
||||
const subscribeURL = new URL('about:blank');
|
||||
try {
|
||||
subscribeURL.href = target.href;
|
||||
// https://github.com/uBlockOrigin/uBlock-issues/issues/763#issuecomment-691696716
|
||||
// Remove replacement patch if/when filterlists.com fixes encoded '&'.
|
||||
subscribeURL.href = target.href.replace('&', '&');
|
||||
if (
|
||||
/^(abp|ubo):$/.test(subscribeURL.protocol) === false &&
|
||||
subscribeURL.hostname !== 'subscribe.adblockplus.org'
|
||||
|
|
Loading…
Reference in a new issue