added a user-defined setTimeout and clearTimeout as a workaround for …#107
Open
Shin-Aska wants to merge 1 commit intomrcoles:masterfrom
Open
added a user-defined setTimeout and clearTimeout as a workaround for …#107Shin-Aska wants to merge 1 commit intomrcoles:masterfrom
Shin-Aska wants to merge 1 commit intomrcoles:masterfrom
Conversation
…websites that override/flood the setTimeout and clearTimeout methods
Masrkai
approved these changes
May 2, 2025
Masrkai
approved these changes
May 2, 2025
Masrkai
left a comment
There was a problem hiding this comment.
I am just learning JS and i want to bring back how this was opensourced, thank you for your contribution, and your code!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As describe in #106
Certain websites overloads the setTimeout and setInterval methods so that they would not reliable work.
This PR implements a workaround by creating our own setTimeout and setInterval making it work even if the setTimeout and setInterval methods are already overloaded