├── assets ├── popup-visibility.css ├── newtab.js ├── popup-visibility.js └── style.css ├── img ├── icon16.png ├── icon48.png ├── icon128.png └── presearch.png ├── newtab.html ├── README.md ├── manifest.json └── popup.html /assets/popup-visibility.css: -------------------------------------------------------------------------------- 1 | .ext-start.hidden-by-extension { 2 | display:none !important; 3 | } 4 | -------------------------------------------------------------------------------- /img/icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PresearchOfficial/Start-Extension-Firefox/master/img/icon16.png -------------------------------------------------------------------------------- /img/icon48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PresearchOfficial/Start-Extension-Firefox/master/img/icon48.png -------------------------------------------------------------------------------- /img/icon128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PresearchOfficial/Start-Extension-Firefox/master/img/icon128.png -------------------------------------------------------------------------------- /img/presearch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PresearchOfficial/Start-Extension-Firefox/master/img/presearch.png -------------------------------------------------------------------------------- /newtab.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /assets/newtab.js: -------------------------------------------------------------------------------- 1 | browser.tabs.getCurrent(tab => { 2 | browser.tabs.create({ url : 'https://www.presearch.com/?utm_source=extff'}, () => { 3 | browser.tabs.remove(tab.id); 4 | }); 5 | }) 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## Presearch.com - Start With Us - Firefox Extension 2 | 3 | Set Firefox's Homepage and New Tab page to Presearch.com 4 | 5 | ### Changelog 6 | v1.0.2 - Set the focus to search bar on new tab open 7 | -------------------------------------------------------------------------------- /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 Firefox's Homepage and New Tab page to Presearch.com", 6 | "version": "1.0.2", 7 | "homepage_url": "https://www.presearch.com/?utm_source=extff", 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 | "activeTab", 27 | "storage", 28 | "tabs", 29 | "*://*.presearch.com/*" 30 | ], 31 | "chrome_settings_overrides": { 32 | "homepage": "https://www.presearch.com/?utm_source=extff" 33 | }, 34 | "chrome_url_overrides" : { 35 | "newtab": "newtab.html" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /popup.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Presearch.com Start With Us 5 | 6 | 7 | 8 | 9 | 10 | 28 |

Start With Us

29 |
30 |

Learn more about the project:

31 | 32 | 46 | 47 | 48 | 49 | 50 | 51 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 63 | 64 | 65 | 66 | 67 | 68 | 70 | 71 | 73 | 74 | 76 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 107 | 109 | 110 | 111 | 112 |
113 | 114 | 115 | --------------------------------------------------------------------------------