diff --git a/plugin/manifest.json b/plugin/manifest.json index 7c083c12..b04b2387 100644 --- a/plugin/manifest.json +++ b/plugin/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 3, "name": "Useful Forks", - "version": "2.2.2", + "version": "2.2.3", "description": "To list GitHub forks ordered by stars, with additional information and automatic filtering of irrelevant ones.", "icons": { diff --git a/plugin/useful-forks.js b/plugin/useful-forks.js index d50d001a..074cd55a 100644 --- a/plugin/useful-forks.js +++ b/plugin/useful-forks.js @@ -1,29 +1,31 @@ function getRepoUrl() { - const pathComponents = window.location.pathname.split('/'); + const pathComponents = window.location.pathname.split("/"); const user = pathComponents[1], repo = pathComponents[2]; return `https://useful-forks.github.io/?repo=${user}/${repo}`; } function setBtnUrl() { const button = document.getElementById(UF_BTN_ID); - button.addEventListener('click', () => { - window.open(getRepoUrl(), '_blank'); + button.addEventListener("click", () => { + window.open(getRepoUrl(), "_blank"); }); } function createUsefulBtn() { const li = document.createElement("li"); - const content = `
- - - Search for useful forks in a new tab - -
`; + const content = ` +
+ + + Search for useful forks in a new tab + +
+ `; li.innerHTML = content; li.id = UF_LI_ID; return li;