Skip to content

Commit b050730

Browse files
authored
fix: overlay breaks the ui on npmjs.com (#158) (#160)
Fix #158 change the injected overlay to be after the div element that represent the "nom install <package> after the fix here is the screenshots: **npmjs.com** ![Screen Shot 2024-02-15 at 13 12 27](https://github.com/os-scar/overlay/assets/6542413/ca069e2b-9c57-4183-ac6a-9ba2092e5754) **pypi.org** ![Screen Shot 2024-02-15 at 13 12 41](https://github.com/os-scar/overlay/assets/6542413/282df1c3-5841-4cd0-ab4f-c9bee0477702) **stackoverflow.com** ![Screen Shot 2024-02-15 at 13 13 13](https://github.com/os-scar/overlay/assets/6542413/eb4c384a-5097-417f-ad4a-d575990e6fb3)
1 parent 8440c0a commit b050730

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/content.npmjs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const addPackageReport = async (packageID) => {
1919
packageReport.setAttribute('package-name', packageID.name);
2020

2121
const properties = collaborators.parentElement.parentElement;
22-
const install = properties.querySelector('p');
22+
const install = properties.querySelector('div.d767adf4.lh-copy');
2323
install.after(packageReport);
2424
};
2525

0 commit comments

Comments
 (0)