const MessageType={PAGE_RENDERED:"pageRendered"};let tabId,currentUrl="";chrome.webRequest.onCompleted.addListener((function(e){const t=new URL(e.url);currentUrl&&currentUrl.indexOf(t.pathname)>-1&&tabId&&chrome.tabs.sendMessage(tabId,{type:MessageType.PAGE_RENDERED})}),{urls:["*://*.github.com/*"]}),chrome.webNavigation.onHistoryStateUpdated.addListener((e=>{tabId=e.tabId,currentUrl=e.url}),{url:[{hostSuffix:"github.com"}]});