Skip to content

[Bug Report] Conflict with uBlock Origin #127

Closed
@cyfung1031

Description

@cyfung1031

If uBlock Origin is enabled, YouTube will be frozen due to the conflict with ajax-hook.

Reproduction:

  1. Use Chrome (or Firefox)
  2. Install uBlock Origin (v1.51.0)
  3. Install Userscript Manager Tampermonkey or Violentmonkey
Screen Shot 2023-09-02 at 19 22 08
  1. create a new userscript to let the code inject at the very first begining.
// ==UserScript==
// @name        Testing 333
// @namespace   TestScripts
// @match       https://www.youtube.com/*
// @grant       none
// @version     1.0
// @author      abc
// @description Testing
// @require     https://github.com/wendux/ajax-hook/raw/master/dist/ajaxhook.js
// @run-at      document-start
// ==/UserScript==

ah.proxy({
    onRequest: (config, handler) => {
        handler.next(config);
    },
    onResponse: (response, handler) => {
        handler.resolve(response);
    }
});
  1. open youtube.com
  2. frozen

Screenshots

Chrome:

Screen Shot 2023-09-02 at 19 21 36

Firefox:

Screen Shot 2023-09-02 at 19 23 47

Console Error:

Chrome:
Screen Shot 2023-09-02 at 19 25 14

Firefox:
Screen Shot 2023-09-02 at 19 24 56

Remarks 1:

Tried to downgrade to earlier version like
Jun 14, 2022 9efea44
https://github.com/wendux/ajax-hook/raw/9efea44c8b2bc27b5ec0e8c2e3a2477bdc76dab9/dist/ajaxhook.js

Same result.

Remarks 2:

If PR #120 is applied, the issue might get resolved by bypassing the urls.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions