├── .gitignore ├── icons ├── logo-256.png ├── logo-48.png └── logo-96.png ├── mate.js ├── README.md ├── LICENSE └── manifest.json /.gitignore: -------------------------------------------------------------------------------- 1 | web-ext-artifacts/ 2 | .DS_Store -------------------------------------------------------------------------------- /icons/logo-256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apoorvlathey/contract-mate/HEAD/icons/logo-256.png -------------------------------------------------------------------------------- /icons/logo-48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apoorvlathey/contract-mate/HEAD/icons/logo-48.png -------------------------------------------------------------------------------- /icons/logo-96.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apoorvlathey/contract-mate/HEAD/icons/logo-96.png -------------------------------------------------------------------------------- /mate.js: -------------------------------------------------------------------------------- 1 | const item = document.createElement("li"); 2 | item.className = "nav-item"; 3 | const link = document.createElement("a"); 4 | link.href = window.location.href.replace(/\.\w+(\/)/, ".deth.net/"); 5 | link.className = "nav-link"; 6 | link.target = "_blank"; 7 | link.text = "View in VS Code"; 8 | item.appendChild(link); 9 | document 10 | .querySelector("#contracts") 11 | .querySelector("#nav_subtabs") 12 | .appendChild(item); 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # contract-mate 2 | 3 | A browser plugin, which adds a quick access to https://twitter.com/dethcrypto VS Code editor in the contract page on https://etherscan.io. 4 | 5 | ![screenshot1](https://addons.mozilla.org/user-media/previews/thumbs/264/264514.jpg?modified=1639652105) 6 | 7 | Chrome: https://chrome.google.com/webstore/detail/contract-mate/mbglhphbjpgjhkmhmjcebjoijlnogccp 8 | Firefox: https://addons.mozilla.org/en-US/firefox/addon/contract-mate/ 9 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Junchen Xia 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 3, 3 | "name": "Contract Mate", 4 | "version": "1.1", 5 | 6 | "description": "Adds a quick access to deth.net editor to view contracts via etherscan", 7 | 8 | "icons": { 9 | "48": "icons/logo-48.png", 10 | "96": "icons/logo-96.png", 11 | "256": "icons/logo-256.png" 12 | }, 13 | 14 | "content_scripts": [ 15 | { 16 | "matches": [ 17 | "*://etherscan.io/address/*", 18 | "*://ropsten.etherscan.io/address/*", 19 | "*://rinkeby.etherscan.io/address/*", 20 | "*://goerli.etherscan.io/address/*", 21 | "*://kovan.etherscan.io/address/*", 22 | "*://bscscan.com/address/*", 23 | "*://testnet.bscscan.com/address/*", 24 | "*://hecoinfo.com/address/*", 25 | "*://testnet.hecoinfo.com/address/*", 26 | "*://ftmscan.com/address/*", 27 | "*://testnet.ftmscan.com/address/*", 28 | "*://optimistic.etherscan.io/address/*", 29 | "*://kovan-optimistic.etherscan.io/address/*", 30 | "*://polygonscan.com/address/*", 31 | "*://testnet.polygonscan.com/address/*", 32 | "*://arbiscan.io/address/*", 33 | "*://testnet.arbiscan.io/address/*", 34 | "*://snowtrace.io/address/*", 35 | "*://testnet.snowtrace.io/address/*" 36 | ], 37 | "js": ["mate.js"] 38 | } 39 | ] 40 | } 41 | --------------------------------------------------------------------------------