├── README.md
├── hello.html
├── manifest.json
└── popup.js
/README.md:
--------------------------------------------------------------------------------
1 | ## etherscan-noprice
2 |
3 | Stop looking at charts anon!
4 |
5 | This plugin removes the Ether price on etherscan.
6 |
--------------------------------------------------------------------------------
/hello.html:
--------------------------------------------------------------------------------
1 |
2 |
3 | Hello Extensions
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Hello Extensions",
3 | "description": "Base Level Extension",
4 | "version": "1.0",
5 | "manifest_version": 3,
6 | "action": {
7 | "default_popup": "hello.html"
8 | },
9 | "content_scripts": [
10 | {
11 | "js": ["popup.js"],
12 | "matches": [""]
13 | }
14 | ]
15 | }
16 |
--------------------------------------------------------------------------------
/popup.js:
--------------------------------------------------------------------------------
1 | // Example content script
2 | console.log("Content script loaded!");
3 |
4 | // Function to remove an element by ID
5 | function removeElementById(elementId) {
6 | var elementToRemove = document.getElementById(elementId);
7 | if (elementToRemove) {
8 | elementToRemove.remove();
9 | }
10 | }
11 |
12 | // Replace 'yourSpecificId' with the ID of the element you want to remove
13 | removeElementById("ethPrice");
14 |
15 | // Function to remove a link by href
16 | function removeLinkByHref(hrefToRemove) {
17 | var links = document.querySelectorAll('a[href="' + hrefToRemove + '"]');
18 | links.forEach(function (link) {
19 | link.remove();
20 | });
21 | }
22 |
23 | // Replace 'yourSpecificHref' with the href of the link you want to remove
24 | removeLinkByHref("/chart/etherprice");
25 |
--------------------------------------------------------------------------------