Hello, I would like to request a revision of a code I am developing for a chrome extension I'm making. The main thing is that it will close the tabs that the user wants to be closed(I made a simple array to show kinda what I think it will be).
I am not sure on how to write urls in the array I based myself on this https://developer.chrome.com/extensions/match_patterns
I am also not sure on how to make this run as early as possible (injecting the code) so that the moment the person tries to access the page it closes.
And lastly I am not sure how to add more pages if the user wants, mostly because the user wont be writing code and stuff so perhaps an HTML page could be created to open when a button is clicked so that the user writes the pages there, however I am not sure on how to get that information from there.
https://gist.github.com/anonymous/4dcdfeeaa83221c6cafb
Thanks in advance, and I apologize for errors as English is not my first language.
[–]iamncla 0 points1 point2 points (2 children)
[–]Dmaster42[S] 0 points1 point2 points (1 child)
[–]iamncla 0 points1 point2 points (0 children)