mirror of
https://github.com/lawrencehook/remove-youtube-suggestions.git
synced 2026-07-25 06:54:31 +00:00
14 lines
393 B
JavaScript
14 lines
393 B
JavaScript
|
|
if (typeof browser === 'undefined') {
|
|
browser = typeof chrome !== 'undefined' ? chrome : null;
|
|
}
|
|
|
|
const reloadButton = document.getElementById("reload_button");
|
|
reloadButton.addEventListener("click", sendReloadMessage);
|
|
|
|
async function sendReloadMessage() {
|
|
browser.tabs.query({ active: true, currentWindow: true }, tabs => {
|
|
tabs.forEach(tab => browser.tabs.reload(tab.id));
|
|
});
|
|
}
|