├── assets ├── popup-visibility.css ├── popup-visibility.js └── style.css ├── img ├── icon128.png ├── icon16.png ├── icon48.png └── presearch.png ├── README.md ├── newtab.html ├── manifest.json └── popup.html /assets/popup-visibility.css: -------------------------------------------------------------------------------- 1 | .ext-start.hidden-by-extension { 2 | display:none !important; 3 | } 4 | -------------------------------------------------------------------------------- /img/icon128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PresearchOfficial/Start-Extension-Chrome/master/img/icon128.png -------------------------------------------------------------------------------- /img/icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PresearchOfficial/Start-Extension-Chrome/master/img/icon16.png -------------------------------------------------------------------------------- /img/icon48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PresearchOfficial/Start-Extension-Chrome/master/img/icon48.png -------------------------------------------------------------------------------- /img/presearch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PresearchOfficial/Start-Extension-Chrome/master/img/presearch.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Presearch.com - Start With Us - Chrome Extension 2 | 3 | Set Chrome's Homepage and New Tab page to Presearch.com 4 | -------------------------------------------------------------------------------- /newtab.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /assets/popup-visibility.js: -------------------------------------------------------------------------------- 1 | // add hidden input to detect extension 2 | function addInput() { 3 | var body = document.getElementsByTagName('body'); 4 | var input = document.createElement("input"); 5 | input.setAttribute("type", "hidden"); 6 | input.setAttribute("name", "has-start-ext"); 7 | input.setAttribute("value", "true"); 8 | document.body.appendChild(input); 9 | } 10 | 11 | // add input on load 12 | document.addEventListener("DOMContentLoaded", function(event) { 13 | addInput() 14 | }); 15 | -------------------------------------------------------------------------------- /assets/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family:arial, sans-serif; 3 | color: white; 4 | background: #254662; 5 | background: linear-gradient(0deg,#254662,#00bfff); 6 | background-attachment: fixed; 7 | padding:20px; 8 | font-size:16px; 9 | width:400px; 10 | max-width:100%; 11 | } 12 | #logo { 13 | display:block; 14 | max-width:300px; 15 | margin:0 auto; 16 | } 17 | #logo svg *, 18 | a.icon svg * { 19 | fill: white; 20 | } 21 | h1 { 22 | font-size: 20px; 23 | margin:20px 0; 24 | } 25 | .text-center { 26 | text-align:center; 27 | } 28 | a.icon { 29 | display:inline-block; 30 | height:30px; 31 | width:30px; 32 | margin:0 5px; 33 | } 34 | #container { 35 | margin:10px 0; 36 | } 37 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "manifest_version": 2, 3 | 4 | "name": "Presearch.com Start With Us", 5 | "description": "Set Chrome's Homepage and New Tab page to Presearch.com", 6 | "version": "1.0.3", 7 | "homepage_url": "https://www.presearch.com/?utm_source=extcr", 8 | "icons": { 9 | "16": "img/icon16.png", 10 | "48": "img/icon48.png", 11 | "128": "img/icon128.png" 12 | }, 13 | "browser_action": { 14 | "default_icon": "img/icon16.png", 15 | "default_popup": "popup.html" 16 | }, 17 | "content_scripts": [ 18 | { 19 | "matches": ["*://*.presearch.com/*"], 20 | "css": ["assets/popup-visibility.css"], 21 | "js": ["assets/popup-visibility.js"], 22 | "run_at": "document_start" 23 | } 24 | ], 25 | "permissions": [ 26 | "*://*.presearch.com/*" 27 | ], 28 | "chrome_settings_overrides": { 29 | "homepage": "https://presearch.com/?utm_source=extcr", 30 | "startup_pages": ["https://presearch.com/?utm_source=extcr"] 31 | }, 32 | "chrome_url_overrides" : { 33 | "newtab": "newtab.html" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /popup.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |Learn more about the project:
31 | 32 | 46 | 47 | 48 | 49 | 55 | 56 | 57 | 58 | 65 | 66 | 67 | 68 | 80 | 81 | 82 | 83 | 93 | 94 | 95 | 96 | 100 | 101 | 102 | 103 | 111 | 112 |