Skip to content
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

Showing black loading screen #164

Closed
Hamxa101 opened this issue Jan 20, 2025 · 16 comments
Closed

Showing black loading screen #164

Hamxa101 opened this issue Jan 20, 2025 · 16 comments

Comments

@Hamxa101
Copy link

Hamxa101 commented Jan 20, 2025

I use Twitchnosub extension on microsoft edge. I keep extension off only use it when I have to open twitch. But problem is that its no longer working. It just showing me black buffering screen all the time. Is there any solution for it?

@besuper
Copy link
Owner

besuper commented Jan 20, 2025

Hello, can you provide a screen of the console logs (ctrl + shift + i)

@woutervanerp
Copy link

Image

@Aabhihek
Copy link

same issue with me

@kuryoo
Copy link

kuryoo commented Jan 20, 2025

Same with me

Image

@salahsai
Copy link

the solution is here #150

@jacquespervers
Copy link

just put the code shown on #150 and it did not work, im on the 8.1 version, what should i do ?

@Hamxa101
Copy link
Author

@besuper Here it is

Image

@Susankandel
Copy link

To fix it just go to (Src then app.js)

Copy all and delete all

Then past the following code (Enjoy)

var isVariantA = false;
const originalAppendChild = document.head.appendChild;

document.head.appendChild = function (element) {
  if (element.tagName === "SCRIPT") {
    if (element.src.includes("player-core-variant-a")) {
      isVariantA = true;
    }
  }

  return originalAppendChild.call(this, element);
};

const oldWorker = window.Worker;

window.Worker = class Worker extends oldWorker {
  constructor(twitchBlobUrl) {
    super(twitchBlobUrl);

    this.addEventListener("message", (event) => {
      const data = event.data;

      if ((data.id == 1 || isVariantA) && data.type == 1) {
        const newData = event.data;

        newData.arg = [data.arg];

        this.postMessage(newData);
      }
    });
  }
};

Susankandel added a commit to Susankandel/TwitchNoSub that referenced this issue Jan 22, 2025
@besuper
Copy link
Owner

besuper commented Jan 22, 2025

@besuper Here it is

Image

Can you retry with the 0.8.2 version. If it's still not working, resend a screenshot please

@Superpaul209
Copy link

Hello @besuper, the error isn't fixed for me

Image

Version 0.8.2. But my old version with the app.js modified is working fine.

@besuper
Copy link
Owner

besuper commented Jan 22, 2025

Hello @besuper, the error isn't fixed for me

Image

Version 0.8.2. But my old version with the app.js modified is working fine.

Can go in the console tab and take a screenshot with more informations please

@Superpaul209
Copy link

@besuper the message is huge

Image

@besuper
Copy link
Owner

besuper commented Jan 22, 2025

@besuper the message is huge

Image

Yeah check for messages above that error

@Superpaul209
Copy link

Image

Image

I don't know what is interesting for you, is it enough ?

@besuper
Copy link
Owner

besuper commented Jan 22, 2025

Yes, can you now try with the latest version please

@Superpaul209
Copy link

@besuper everything seems fine and working, thank you so much !

@besuper besuper closed this as completed Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants