Skip to content

Commit

Permalink
Add getting started
Browse files Browse the repository at this point in the history
  • Loading branch information
christianesperar committed Sep 2, 2018
1 parent ce55fda commit 90d111f
Show file tree
Hide file tree
Showing 20 changed files with 495 additions and 31 deletions.
1 change: 1 addition & 0 deletions dist/background.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion dist/blank.js

This file was deleted.

2 changes: 1 addition & 1 deletion dist/manifest.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"Remove Most Visited Pages","short_name":"RMVP","description":"Remove Most Visited Pages by redirecting the new tab page to Google homepage","icons":{"16":"icons/16.png","48":"icons/48.png","128":"icons/128.png"},"author":"Christian Esperar","version":"2.1.0","incognito":"split","chrome_url_overrides":{"newtab":"blank.html"},"permissions":["storage"],"options_page":"options/options.html","manifest_version":2,"content_scripts":[{"matches":["*://www.google.com/*","*://www.google.ad/*","*://www.google.ae/*","*://www.google.com.af/*","*://www.google.com.ag/*","*://www.google.com.ai/*","*://www.google.al/*","*://www.google.am/*","*://www.google.co.ao/*","*://www.google.com.ar/*","*://www.google.as/*","*://www.google.at/*","*://www.google.com.au/*","*://www.google.az/*","*://www.google.ba/*","*://www.google.com.bd/*","*://www.google.be/*","*://www.google.bf/*","*://www.google.bg/*","*://www.google.com.bh/*","*://www.google.bi/*","*://www.google.bj/*","*://www.google.com.bn/*","*://www.google.com.bo/*","*://www.google.com.br/*","*://www.google.bs/*","*://www.google.bt/*","*://www.google.co.bw/*","*://www.google.by/*","*://www.google.com.bz/*","*://www.google.ca/*","*://www.google.cd/*","*://www.google.cf/*","*://www.google.cg/*","*://www.google.ch/*","*://www.google.ci/*","*://www.google.co.ck/*","*://www.google.cl/*","*://www.google.cm/*","*://www.google.cn/*","*://www.google.com.co/*","*://www.google.co.cr/*","*://www.google.com.cu/*","*://www.google.cv/*","*://www.google.com.cy/*","*://www.google.cz/*","*://www.google.de/*","*://www.google.dj/*","*://www.google.dk/*","*://www.google.dm/*","*://www.google.com.do/*","*://www.google.dz/*","*://www.google.com.ec/*","*://www.google.ee/*","*://www.google.com.eg/*","*://www.google.es/*","*://www.google.com.et/*","*://www.google.fi/*","*://www.google.com.fj/*","*://www.google.fm/*","*://www.google.fr/*","*://www.google.ga/*","*://www.google.ge/*","*://www.google.gg/*","*://www.google.com.gh/*","*://www.google.com.gi/*","*://www.google.gl/*","*://www.google.gm/*","*://www.google.gp/*","*://www.google.gr/*","*://www.google.com.gt/*","*://www.google.gy/*","*://www.google.com.hk/*","*://www.google.hn/*","*://www.google.hr/*","*://www.google.ht/*","*://www.google.hu/*","*://www.google.co.id/*","*://www.google.ie/*","*://www.google.co.il/*","*://www.google.im/*","*://www.google.co.in/*","*://www.google.iq/*","*://www.google.is/*","*://www.google.it/*","*://www.google.je/*","*://www.google.com.jm/*","*://www.google.jo/*","*://www.google.co.jp/*","*://www.google.co.ke/*","*://www.google.com.kh/*","*://www.google.ki/*","*://www.google.kg/*","*://www.google.co.kr/*","*://www.google.com.kw/*","*://www.google.kz/*","*://www.google.la/*","*://www.google.com.lb/*","*://www.google.li/*","*://www.google.lk/*","*://www.google.co.ls/*","*://www.google.lt/*","*://www.google.lu/*","*://www.google.lv/*","*://www.google.com.ly/*","*://www.google.co.ma/*","*://www.google.md/*","*://www.google.me/*","*://www.google.mg/*","*://www.google.mk/*","*://www.google.ml/*","*://www.google.com.mm/*","*://www.google.mn/*","*://www.google.ms/*","*://www.google.com.mt/*","*://www.google.mu/*","*://www.google.mv/*","*://www.google.mw/*","*://www.google.com.mx/*","*://www.google.com.my/*","*://www.google.co.mz/*","*://www.google.com.na/*","*://www.google.com.nf/*","*://www.google.com.ng/*","*://www.google.com.ni/*","*://www.google.ne/*","*://www.google.nl/*","*://www.google.no/*","*://www.google.com.np/*","*://www.google.nr/*","*://www.google.nu/*","*://www.google.co.nz/*","*://www.google.com.om/*","*://www.google.com.pa/*","*://www.google.com.pe/*","*://www.google.com.pg/*","*://www.google.com.ph/*","*://www.google.com.pk/*","*://www.google.pl/*","*://www.google.pn/*","*://www.google.com.pr/*","*://www.google.ps/*","*://www.google.pt/*","*://www.google.com.py/*","*://www.google.com.qa/*","*://www.google.ro/*","*://www.google.ru/*","*://www.google.rw/*","*://www.google.com.sa/*","*://www.google.com.sb/*","*://www.google.sc/*","*://www.google.se/*","*://www.google.com.sg/*","*://www.google.sh/*","*://www.google.si/*","*://www.google.sk/*","*://www.google.com.sl/*","*://www.google.sn/*","*://www.google.so/*","*://www.google.sm/*","*://www.google.sr/*","*://www.google.st/*","*://www.google.com.sv/*","*://www.google.td/*","*://www.google.tg/*","*://www.google.co.th/*","*://www.google.com.tj/*","*://www.google.tk/*","*://www.google.tl/*","*://www.google.tm/*","*://www.google.tn/*","*://www.google.to/*","*://www.google.com.tr/*","*://www.google.tt/*","*://www.google.com.tw/*","*://www.google.co.tz/*","*://www.google.com.ua/*","*://www.google.co.ug/*","*://www.google.co.uk/*","*://www.google.com.uy/*","*://www.google.co.uz/*","*://www.google.com.vc/*","*://www.google.co.ve/*","*://www.google.vg/*","*://www.google.co.vi/*","*://www.google.com.vn/*","*://www.google.vu/*","*://www.google.ws/*","*://www.google.rs/*","*://www.google.co.za/*","*://www.google.co.zm/*","*://www.google.co.zw/*","*://www.google.cat/*"],"css":["search.css"],"js":["search.js"],"run_at":"document_start"}]}
{"name":"Remove Most Visited Pages","short_name":"RMVP","description":"Remove Most Visited Pages by redirecting the new tab page to Google homepage","icons":{"16":"icons/16.png","48":"icons/48.png","128":"icons/128.png"},"author":"Christian Esperar","version":"2.2.0","incognito":"split","chrome_url_overrides":{"newtab":"blank.html"},"permissions":["storage"],"background":{"scripts":["background.js"],"persistent":false},"options_page":"pages/options/options.html","manifest_version":2,"content_scripts":[{"matches":["*://www.google.com/*","*://www.google.ad/*","*://www.google.ae/*","*://www.google.com.af/*","*://www.google.com.ag/*","*://www.google.com.ai/*","*://www.google.al/*","*://www.google.am/*","*://www.google.co.ao/*","*://www.google.com.ar/*","*://www.google.as/*","*://www.google.at/*","*://www.google.com.au/*","*://www.google.az/*","*://www.google.ba/*","*://www.google.com.bd/*","*://www.google.be/*","*://www.google.bf/*","*://www.google.bg/*","*://www.google.com.bh/*","*://www.google.bi/*","*://www.google.bj/*","*://www.google.com.bn/*","*://www.google.com.bo/*","*://www.google.com.br/*","*://www.google.bs/*","*://www.google.bt/*","*://www.google.co.bw/*","*://www.google.by/*","*://www.google.com.bz/*","*://www.google.ca/*","*://www.google.cd/*","*://www.google.cf/*","*://www.google.cg/*","*://www.google.ch/*","*://www.google.ci/*","*://www.google.co.ck/*","*://www.google.cl/*","*://www.google.cm/*","*://www.google.cn/*","*://www.google.com.co/*","*://www.google.co.cr/*","*://www.google.com.cu/*","*://www.google.cv/*","*://www.google.com.cy/*","*://www.google.cz/*","*://www.google.de/*","*://www.google.dj/*","*://www.google.dk/*","*://www.google.dm/*","*://www.google.com.do/*","*://www.google.dz/*","*://www.google.com.ec/*","*://www.google.ee/*","*://www.google.com.eg/*","*://www.google.es/*","*://www.google.com.et/*","*://www.google.fi/*","*://www.google.com.fj/*","*://www.google.fm/*","*://www.google.fr/*","*://www.google.ga/*","*://www.google.ge/*","*://www.google.gg/*","*://www.google.com.gh/*","*://www.google.com.gi/*","*://www.google.gl/*","*://www.google.gm/*","*://www.google.gp/*","*://www.google.gr/*","*://www.google.com.gt/*","*://www.google.gy/*","*://www.google.com.hk/*","*://www.google.hn/*","*://www.google.hr/*","*://www.google.ht/*","*://www.google.hu/*","*://www.google.co.id/*","*://www.google.ie/*","*://www.google.co.il/*","*://www.google.im/*","*://www.google.co.in/*","*://www.google.iq/*","*://www.google.is/*","*://www.google.it/*","*://www.google.je/*","*://www.google.com.jm/*","*://www.google.jo/*","*://www.google.co.jp/*","*://www.google.co.ke/*","*://www.google.com.kh/*","*://www.google.ki/*","*://www.google.kg/*","*://www.google.co.kr/*","*://www.google.com.kw/*","*://www.google.kz/*","*://www.google.la/*","*://www.google.com.lb/*","*://www.google.li/*","*://www.google.lk/*","*://www.google.co.ls/*","*://www.google.lt/*","*://www.google.lu/*","*://www.google.lv/*","*://www.google.com.ly/*","*://www.google.co.ma/*","*://www.google.md/*","*://www.google.me/*","*://www.google.mg/*","*://www.google.mk/*","*://www.google.ml/*","*://www.google.com.mm/*","*://www.google.mn/*","*://www.google.ms/*","*://www.google.com.mt/*","*://www.google.mu/*","*://www.google.mv/*","*://www.google.mw/*","*://www.google.com.mx/*","*://www.google.com.my/*","*://www.google.co.mz/*","*://www.google.com.na/*","*://www.google.com.nf/*","*://www.google.com.ng/*","*://www.google.com.ni/*","*://www.google.ne/*","*://www.google.nl/*","*://www.google.no/*","*://www.google.com.np/*","*://www.google.nr/*","*://www.google.nu/*","*://www.google.co.nz/*","*://www.google.com.om/*","*://www.google.com.pa/*","*://www.google.com.pe/*","*://www.google.com.pg/*","*://www.google.com.ph/*","*://www.google.com.pk/*","*://www.google.pl/*","*://www.google.pn/*","*://www.google.com.pr/*","*://www.google.ps/*","*://www.google.pt/*","*://www.google.com.py/*","*://www.google.com.qa/*","*://www.google.ro/*","*://www.google.ru/*","*://www.google.rw/*","*://www.google.com.sa/*","*://www.google.com.sb/*","*://www.google.sc/*","*://www.google.se/*","*://www.google.com.sg/*","*://www.google.sh/*","*://www.google.si/*","*://www.google.sk/*","*://www.google.com.sl/*","*://www.google.sn/*","*://www.google.so/*","*://www.google.sm/*","*://www.google.sr/*","*://www.google.st/*","*://www.google.com.sv/*","*://www.google.td/*","*://www.google.tg/*","*://www.google.co.th/*","*://www.google.com.tj/*","*://www.google.tk/*","*://www.google.tl/*","*://www.google.tm/*","*://www.google.tn/*","*://www.google.to/*","*://www.google.com.tr/*","*://www.google.tt/*","*://www.google.com.tw/*","*://www.google.co.tz/*","*://www.google.com.ua/*","*://www.google.co.ug/*","*://www.google.co.uk/*","*://www.google.com.uy/*","*://www.google.co.uz/*","*://www.google.com.vc/*","*://www.google.co.ve/*","*://www.google.vg/*","*://www.google.co.vi/*","*://www.google.com.vn/*","*://www.google.vu/*","*://www.google.ws/*","*://www.google.rs/*","*://www.google.co.za/*","*://www.google.co.zm/*","*://www.google.co.zw/*","*://www.google.cat/*"],"css":["search.css"],"js":["search.js"],"run_at":"document_start"}]}
1 change: 1 addition & 0 deletions dist/normalize.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added dist/pages/disure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions dist/pages/getting-started/getting-started.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><!-- Required meta tags --><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><link rel="stylesheet" href="../../normalize.css"><link rel="stylesheet" href="../pages.css"><title>Getting Started - Remove most visited pages</title></head><body><div class="main"><h1>Remove most visited pages</h1><h2>Getting Started</h2><p>Remove Most Visited Pages by redirecting the new tab page to Google homepage.</p><p>This plugin also modify your Google homepage by removing some elements to make it look exactly like the new tab page.</p><h3>Pros</h3><ul><li>Removes Most Visited Pages</li></ul><h3>Cons</h3><ul><li>Typing search query in the URL bar is not yet possible, alternatively, you can use shortcut key<ul><li>Windows or Linux: Ctrl + L or Alt + D or F6</li><li>Mac: ⌘ + L</li></ul></li><li>No theme support</li><li>Not recommended for users with slow internet connections</li></ul><h3>Additional Features</h3><ul><li>Go directly to the website if search query is in url format (v2.1.0 and above)<div><iframe class="main__video" width="420" height="315" src="https://www.youtube.com/embed/I5441Ty88Vk"></iframe></div></li></ul></div><aside class="sponsor"><h2>Sponsor</h2><a href="https://disure.co/" target="_blank"><img class="sponsor__img" src="../disure.png"></a></aside></body></html>
1 change: 1 addition & 0 deletions dist/pages/options/options.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!doctype html><html lang="en"><head><!-- Required meta tags --><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><link rel="stylesheet" href="../../normalize.css"><link rel="stylesheet" href="../pages.css"><title>Options - Remove most visited pages</title></head><body><div class="main"><h1>Remove Most Visited Pages</h1><h2>Options</h2><p><label><input type="checkbox" class="options"> Go directly to the website if search query is in url format</label></p><button id="save">Save</button></div><aside class="sponsor"><h2>Sponsor</h2><a href="https://disure.co/" target="_blank"><img class="sponsor__img" src="../disure.png"></a></aside><script type="text/javascript" src="options.js"></script></body></html>
1 change: 1 addition & 0 deletions dist/pages/options/options.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/pages/pages.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added disure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 7 additions & 7 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,32 @@ const dest = 'dist/';
const src = 'src/';

function build() {
gulp.src(`${src}*.js`)
gulp.src(`${src}**/*.js`)
.pipe(babel({
presets: ['es2015'],
}))
.pipe(stripDebug())
.pipe(uglify())
.pipe(gulp.dest(dest));

gulp.src(`${src}*.css`)
gulp.src(`${src}**/*.css`)
.pipe(cleanCSS({ compatibility: 'ie8' }))
.pipe(gulp.dest(dest));

gulp.src(`${src}*.html`)
gulp.src(`${src}**/*.html`)
.pipe(htmlmin({ collapseWhitespace: true }))
.pipe(gulp.dest(dest));

gulp.src(`${src}*.json`)
gulp.src(`${src}**/*.json`)
.pipe(jsonminify())
.pipe(gulp.dest(dest));

gulp.src(`${src}icons/*.png`)
.pipe(gulp.dest(`${dest}icons/`));
gulp.src(`${src}**/*.png`)
.pipe(gulp.dest(dest));
}

function watch() {
gulp.watch([ `${src}*` ], [ 'build' ]);
gulp.watch([ `${src}**/*` ], [ 'build' ]);
}

gulp.task('build', build);
Expand Down
5 changes: 5 additions & 0 deletions src/background.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
chrome.runtime.onInstalled.addListener((object) => {
if (object.reason === 'install') {
chrome.tabs.create({ url: 'pages/getting-started/getting-started.html' });
}
});
10 changes: 8 additions & 2 deletions src/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,21 @@
"128": "icons/128.png"
},
"author":"Christian Esperar",
"version": "2.1.0",
"version": "2.2.0",
"incognito": "split",
"chrome_url_overrides": {
"newtab": "blank.html"
},
"permissions": [
"storage"
],
"options_page": "options/options.html",
"background": {
"scripts": [
"background.js"
],
"persistent": false
},
"options_page": "pages/options/options.html",
"manifest_version": 2,
"content_scripts": [
{
Expand Down
Loading

0 comments on commit 90d111f

Please sign in to comment.