From a5409a6b2a66bfd85a902c468b726e1e60855c71 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 29 Jan 2013 15:55:33 -0500 Subject: [PATCH 1/1] clearhistory-1.5 --- _locales/en/messages.json | 39 +++++++++ _locales/es_419/messages.json | 1 + _locales/pt_BR/messages.json | 1 + css/options.css | 145 ++++++++++++++++++++++++++++++++++ images/check.png | Bin 0 -> 328 bytes images/icon128.png | Bin 0 -> 16022 bytes images/icon16.png | Bin 0 -> 1578 bytes images/icon32.png | Bin 0 -> 2817 bytes images/icon48.png | Bin 0 -> 4403 bytes javascript/background.js | 42 ++++++++++ javascript/clearhistory.js | 121 ++++++++++++++++++++++++++++ javascript/options.js | 86 ++++++++++++++++++++ javascript/util.js | 51 ++++++++++++ manifest.json | 37 +++++++++ views/options.html | 77 ++++++++++++++++++ 15 files changed, 600 insertions(+) create mode 100644 _locales/en/messages.json create mode 100644 _locales/es_419/messages.json create mode 100644 _locales/pt_BR/messages.json create mode 100644 css/options.css create mode 100644 images/check.png create mode 100644 images/icon128.png create mode 100644 images/icon16.png create mode 100644 images/icon32.png create mode 100644 images/icon48.png create mode 100644 javascript/background.js create mode 100644 javascript/clearhistory.js create mode 100644 javascript/options.js create mode 100644 javascript/util.js create mode 100644 manifest.json create mode 100644 views/options.html diff --git a/_locales/en/messages.json b/_locales/en/messages.json new file mode 100644 index 0000000..ce29f1d --- /dev/null +++ b/_locales/en/messages.json @@ -0,0 +1,39 @@ +{ + "name": {"message": "Clear History"}, + "description": {"message": "Quickly clears the browser history."}, + "title": {"message": "Click to clear history"}, + "direction": {"message": "ltr"}, + "optionsTitle": {"message": "Options for Clear History"}, + "optionsHeader": {"message": "Clear History"}, + "optionsTimeFor": {"message": "Delete history for:"}, + "optionsTime": { + "message": "Last $num$ $units$", + "placeholders": { + "num": {"content": "$1"}, + "units": {"content": "$2"} + } + }, + "optionsTimeAll": {"message": "Everything"}, + "optionsPrompt": {"message": "Prompt before deleting"}, + "optionsSaved": {"message": "Preferences saved!"}, + "confirmPrompt": {"message": "Are you sure you want to delete the history?"}, + "notificationTitle": {"message": "History deleted successfully!"}, + "notificationTime": { + "message": "for the last $num$ $units$", + "placeholders": { + "num": {"content": "$1"}, + "units": {"content": "$2"} + } + }, + "notificationTimeAll": {"message": "from the beginning of time"}, + "notificationBody": { + "message": "History deleted $when$.", + "placeholders": { + "when": {"content": "$1"} + } + }, + "hourString": {"message": "hour"}, + "hoursString": {"message": "hours"}, + "dayString": {"message": "day"}, + "daysString": {"message": "days"} +} diff --git a/_locales/es_419/messages.json b/_locales/es_419/messages.json new file mode 100644 index 0000000..3129d39 --- /dev/null +++ b/_locales/es_419/messages.json @@ -0,0 +1 @@ +{"direction":{"message":"ltr"},"name":{"message":"Borrar historial"},"description":{"message":"Borra r\u00e1pidamente el historial del navegador."},"title":{"message":"Haz clic para borrar el historial."},"optionstitle":{"message":"Opciones para Borrar historial"},"optionsheader":{"message":"Borrar historial"},"optionstimefor":{"message":"Eliminar el historial de:"},"optionstime":{"message":"\u00daltimas $1 $2","placeholders":{"1":{"content":"$1"},"2":{"content":"$2"}}},"optionstimeall":{"message":"Todo"},"optionsprompt":{"message":"Preguntar antes de eliminar"},"optionssaved":{"message":"Preferencias guardadas"},"confirmprompt":{"message":"\u00bfEst\u00e1s seguro de que deseas eliminar el historial?"},"notificationtitle":{"message":"El historial se elimin\u00f3 correctamente."},"notificationtime":{"message":"para las \u00faltimas $1 $2","placeholders":{"1":{"content":"$1"},"2":{"content":"$2"}}},"notificationtimeall":{"message":"desde el principio"},"notificationbody":{"message":"Historial eliminado el $1","placeholders":{"1":{"content":"$1"}}},"hourstring":{"message":"hora"},"hoursstring":{"message":"horas"},"daystring":{"message":"d\u00eda"},"daysstring":{"message":"d\u00edas"}} diff --git a/_locales/pt_BR/messages.json b/_locales/pt_BR/messages.json new file mode 100644 index 0000000..6ab5ef3 --- /dev/null +++ b/_locales/pt_BR/messages.json @@ -0,0 +1 @@ +{"direction":{"message":"ltr"},"name":{"message":"Limpar hist\u00f3rico"},"description":{"message":"Limpa rapidamente o hist\u00f3rico do navegador."},"title":{"message":"Clique para limpar o hist\u00f3rico"},"optionstitle":{"message":"Op\u00e7\u00f5es para Limpar hist\u00f3rico"},"optionsheader":{"message":"Limpar hist\u00f3rico"},"optionstimefor":{"message":"Excluir hist\u00f3rico para:"},"optionstime":{"message":"\u00daltimos $1 $2","placeholders":{"1":{"content":"$1"},"2":{"content":"$2"}}},"optionstimeall":{"message":"Tudo"},"optionsprompt":{"message":"Perguntar antes de excluir"},"optionssaved":{"message":"Prefer\u00eancias salvas"},"confirmprompt":{"message":"Deseja excluir o hist\u00f3rico?"},"notificationtitle":{"message":"Hist\u00f3rico exclu\u00eddo."},"notificationtime":{"message":"at\u00e9 os \u00faltimos $1 $2","placeholders":{"1":{"content":"$1"},"2":{"content":"$2"}}},"notificationtimeall":{"message":"desde o come\u00e7o"},"notificationbody":{"message":"Hist\u00f3rico exclu\u00eddo $1","placeholders":{"1":{"content":"$1"}}},"hourstring":{"message":"hora"},"hoursstring":{"message":"horas"},"daystring":{"message":"dia"},"daysstring":{"message":"dias"}} diff --git a/css/options.css b/css/options.css new file mode 100644 index 0000000..9b8ed34 --- /dev/null +++ b/css/options.css @@ -0,0 +1,145 @@ +/* Copyright 2011 Google Inc. All Rights Reserved. */ + +/** + * @fileoverview The styles for elements of the options page + * @author arunjit@google.com (Arunjit Singh) + */ + +@CHARSET "UTF-8"; +body { + background-color: #eef; + color: #222; + direction: __MSG_@@bidi_dir__; /* Predefined message from Chrome Extension */ + font: 13px/18px "Arial"; +} +header { + color: #333; + margin: 0 auto; + text-align: left; + width: 400px; +} +h1 { + color: #dd4b39; + font: 20px/24px "Arial" normal; + margin: 5px 0 0; + padding: 0 5px 3px; +} +h1 > img, +h1 > span { + vertical-align: middle; +} +hr { + background-color: #ebebeb; + border: none; + clear: both; + height: 1px; + margin: 5px auto; + width: 400px; +} +#content { + background-color: #fff; + border: 4px solid rgba(0, 0, 0, 0.2); + border-radius: 12px; + margin: 40px auto 0; + padding: 10px 10px 0; + width: 500px; +} +#opt-form { + margin: 10px auto; + overflow: hidden; + width: 400px; +} +#opt-time, +#opt-prompt { + background-color: white; + clear: left; + margin: 5px auto; + overflow: hidden; + padding: 5px 5px; +} +.opt-name { + float: left; + width: 175px; +} +.opt-value { + float: left; + width: 215px; +} +.opt-value .opt-option { + clear: left; + margin-bottom: 5px; + overflow: hidden; +} +.opt-value .opt-option .opt-chk { + float: left; +} +.opt-value .opt-option .opt-label { + float: left; + margin-top: -3px; + padding-left: 6px; +} +#optionsSaved { + clear: left; + margin: 10px auto 5px; + padding: 5px; + text-align: center; +} +#optionsSaved b { + background-color: #f9edbe; + border: 1px solid #f0c36d; + border-radius: 2px; + color: #333; + font-weight: normal; + opacity: 0; + padding: 6px 16px; + -webkit-transition: opacity 130ms ease-in-out; +} +#optionsSaved.show b { + opacity: 1; + -webkit-transition: opacity 50ms ease-in-out; +} +input[type="checkbox"], +input[type="radio"] { + -webkit-appearance: none; + background-color: white; + border: 1px solid #dcdcdc; + height: 13px; + margin: 0; + width: 13px; +} +input[type="radio"] { + border-radius: 50%; + height: 15px; + width: 15px; +} +input[type="checkbox"]:hover, +input[type="radio"]:hover { + border-color: #c6c6c6; + -webkit-box-shadow: inset 0px 1px 1px rgba(0,0,0,0.1) +} +input[type="checkbox"]:active, +input[type="radio"]:active { + background-color: #ebebeb; + border-color: #c6c6c6; +} +input[type="radio"]:checked::after { + background: #666; + border-radius: 50%; + content: ''; + display: block; + height: 7px; + margin: 3px auto; + width: 7px; +} +input[type="checkbox"]:checked::after { + content: url('../images/check.png'); + display: block; + left: -5px; + position: relative; + top: -6px; +} +input[type="checkbox"]:focus, +input[type="radio"]:focus { + outline: none; + border-color: #4d90fe; +} diff --git a/images/check.png b/images/check.png new file mode 100644 index 0000000000000000000000000000000000000000..d049b55ac84628f9b0fdaf59eb29b25737fd4b0f GIT binary patch literal 328 zcmeAS@N?(olHy`uVBq!ia0vp^q9Dw{1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(p|d;(0kK+)AO=B*Aw7ftZA;;hvfl*tlpPzz?Z&0B7#^ zq;~1|z&>=lHiBuy@-8)fmdyJ3R$+<%`!@Nq>ruz{^Wz=mtdajfNqol(^}>ixj>OfP z4NZslIM|3}35^oMnyH#c9X6m$IulUadc9+(`3Ixh`}ewUt@EEH258@}99E)qKM)ye zh6D~()tQZ|w}D9m0(iF3cq6`_x0ZT(aP;wWGxue-X_>pxdY$F6y5oZ4$2IELn%!P> zP=l6!S4IUD?X|0R1=ecBLW%?#2#Z(lYA;8T9){88NlLZ0>N+>(`}XKu(+01q<5#)8 z-R<3xX3*whW&l2@4S4TzYe`?@Y6?`zea7*7!i&ZriKSO}sKc#M%8V z1?yV{;YJSaT2O;3f{F&=6~BER8aQgjvL7;&4g)6BA#^PTF%WTa{(hYMQEpqqc6_1T z;qolY^L*eG#QP2S%;SgLiI`t+j|V*o-}<0ALTzKSz2UkCo!bt-$OBCPt^4ch@QVqB zPOlL3u9tf@lS^AHaPBzxYCgX6r~C=*jos9k0`yZs%J2gdHQ;&J7t68OkM5%i zmFXS3Xp|rQ4YobIvtOBgW;hF&{@ht|{o8vMyjmnEi0kf}**ZvpxIXAVTf$5 literal 0 HcmV?d00001 diff --git a/images/icon16.png b/images/icon16.png new file mode 100644 index 0000000000000000000000000000000000000000..547908b21251d9b6dab808c7edc36cad1b158e33 GIT binary patch literal 1578 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`k|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*9U+nA0*tB1$5BeXNr6bM+EIYV;~{3xK*A7;Nk-3KEmEQ%e+* zQqwc@Y?a>c-mj#PnPRIHZt82`Ti~3Uk?B!Ylp0*+7m{3+ootz+WN)WnQ(*-(AUCxn zQK2F?C$HG5!d3}vt`(3C64qBz04piUwpD^SD#ABF!8yMuRl!uxKsVXI%s|1+P|wiV z#N6CmN5ROz&_Lh7NZ-&%*U;R`*vQJjKmiJrfVLH-q*(>IxIyg#@@$ndN=gc>^!3Zj z%k|2Q_413-^$jg8EkR}&8R-I5=oVMzl_XZ^<`pZ$OmImpPA){ffi_eM3D1{oGuTzrd=COM+4n&cLd=IHa;5RX-@T zIKQ+g85kdF$}r8qu)}W=NFmTQR{lkqz(`5Vami0E%}vcK@pQ3O0?O#6WTsddIXf8} zIa-()8W_@L;4_|_%0D6=dz#jPkmR{oF^Zu{erIt$E=j?#j7{TQtV?rIW@~r%Pg&C3-qD?IzDWb7uB)UX_K6zQqp? z)b9Cx&er&Q#|GYo(^nQdGkaZmJn37M+4-xb#@h^JE4XYOZXI3OIyHHp;Q8f$cekr* zSv3?lI7L4G>GbwX_l0>!{;bEx{RT-0(1E&Bcklp<5eGgla7}?ARKiu`)1iQ?_1f zU&gG+pi<*L;YYQ9kC>@F+uyE|=O5|vXIhs`9jo<%#}5vCHcg!#yhmQ9wEfN`h3mX& z72@XS|6S}^{gPYwsVu92IbY?|)4}@`4RZO`#2xguT=ROta*O$gf8Y0zeCd8|;_H?P zS?&j1D=nh+9gX4-&vMEum0V{(qxEr?ZqT06;;XY`&)-;o-%fGzI7E4K(Mzf}CU(e&fFyEm^1-&0K}3Xpg<{U*y{=L3qn6%uAX2+m$$ zc3iZ(L22=~OP4rp_{@CEIb}j#953pXn!4)9wpBtQUSe}*)^q$j!zOZP-P7~T=hjyl zS)O=zHuhi{^RELXS02}VcU&fI%w%clcl2|<#@{5q>c?|F*Ls|{Z{EV|9u-!+c5Cm} lUzdN}$g4A5ck!3@0S0Yd_HD(U6XQUox2LP0%Q~loCIFZOL&^XE literal 0 HcmV?d00001 diff --git a/images/icon32.png b/images/icon32.png new file mode 100644 index 0000000000000000000000000000000000000000..f6c0b67f0fec6488e71c080d05105187108ab5d2 GIT binary patch literal 2817 zcmbVOc{r478z1|=mdcjb#7POWFw8I*Ge*=%jK;BLj2BaQ$IQf7k3BkyBcdWp7fD5R zl%zP6GaSpYMI~uDmWV7xvVEg+zVDB7oj<rHcVw3CxolZL@y za`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git a/images/icon48.png b/images/icon48.png new file mode 100644 index 0000000000000000000000000000000000000000..d768e45beb1fa8cfff483c729a704320923cda89 GIT binary patch literal 4403 zcmbVQX*iT^`yX4j>`V5hiR{c`n;Bxv*vT?Pi!#Pw${4fQ*GMQt6m3GbC?v9{vTs=< zJRwU|wnEnUkLP)M{_lt9ct5=NaoqQHo#%c2e&=$X=ZE`_vpHqL!zIB5004N*Ofhzh z6?|}W9AZ2jnYUsXi#XlLiH;?^)BSN&0s!Skb|nDKNH`CI9RcSSNNFeN0st)TM0+Q? zla(a`PbR714s6r{NIncS0HCWM;Df_oCeVSd1P`LO9%#9?0R$wv>46+It-w}3Xo4rv zG>A&T2A#6U2VKU)-9Y*$fw}<*1_6mc#{mOKUfwiBfF9^iUIb%*pjHO~|1_ar)&u<& zl#`VW5KX2MfSPJxRXkV=4Ag?CL0}r%+S)2WC>R1(2Se2%P*sRF0tQ8Z!N9*S5W^eQ z%^hKfG5*^ZL(&6z(&;`3b#;G#e>H!Y8ky>$4uQkr2OLnSD#JpR7U)gK1*m${j{j!B z5NLQR(T7eXdjk&`ajs-vx*muT>0c?3e5|bgA@-*IT_{G$)B|un>JT-sI*D|U*Pqrj zx*g&F!}wQgnth-TLEVl(Bl}YEjPr0m{u|7w-G6s(~X1aG<- zMi0bzqvl3*LqO4nFepk#0|JJEwR9j59b+vh9EH+BYibz53^g=$U~7=htN8k#7SF+;5lW$cZAW6iv2beuPy@Y^qu;rDMW`oCfkXet3mCsXaoWUt>H zVB<-qlWCr0A0Qg53ADoDiQWhD!SVc+ErviP`VriWsbmuH&-x;W|KcB}ZDfpr89~9Q zzw$<*QO0nXp{5}Qib0{_FwoyvxBsPP>WpC251QjYn&r2O(SZlse_Ed*{4+cRZ^pz> z8KW_-Y$nDSSG*YpWgjrwb%rxZ_`UevL~v+VH4+(Ix>3fhpwy8YfWf3rCfKSBdS=J@ z7n{pnKkW^I4+@K-@EWOCWd)C$sVH*cLB>-8LXCFJ*;SKo)%g89(mvi@y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( zptY9yDL;$&kP5LDe%A=LRdN!W?C5S(i}kXLE(Z?7F?dl{;;)w&2s_K^ZlW{Jp6jIaHOYPg(mzo z?2>}aO(ecGQB}pcCiN)oaL7x|A^5(&Xj`#`=%pVUOhWgBkCls{uAcw?Evr;H1@7s> zq2%ZHT0~usePFnrgWwsGQ~pD)0_86*#r+DLSD4$>;Y?b)mBgvCVhVfywCDNd&q|~1 z`J>(4-7En^2zP)``4rwG_shaCdtJ&v`t-EY`nQl-pqXlWp={dGc@Cw@eD=?3p<*q* zBz9?A6J9I3LxNwX+YEMEgu1RDOE6VYg z*|>$AEFGfWt6LYp^se&mTNd37kT*7I7V=e4zC=gU2lL(9E(ZG$4B2h)t^7cBbYqKm#tj!Wr=b|nOFEIk`7Ct`P# z-lwXf eternity. + * @type {Array.} + * @const + */ + TIMES: [-1, 1, 2, 24, 168], + /** + * The default time (in hours) + * @type {number} + * @const + */ + DEFAULT_TIME: 1, + /** + * String for 'yes'. @see {@code CONSTANTS.NO} + * @type {string} + * @const + */ + YES: 'yes', + /** + * String for 'no' that doesn't evaluate to a falsy value. + * @type {string} + * @const + */ + NO: 'no' +}; + +/** + * Go to the options page on first run + */ +if (!localStorage['options-set']) { + var optionsPageURL = chrome.extension.getURL('/views/options.html'); + chrome.tabs.create({url: optionsPageURL}); + localStorage['options-set'] = 1; +} diff --git a/javascript/clearhistory.js b/javascript/clearhistory.js new file mode 100644 index 0000000..af8fdce --- /dev/null +++ b/javascript/clearhistory.js @@ -0,0 +1,121 @@ +// Copyright 2011 Google Inc. All Rights Reserved. + +/** + * @fileoverview The main script for the Clear History extension for Chrome. + * @author arunjit@google.com (Arunjit Singh) + */ + +/** + * Removes a single cookie + * @param {Object.} cookie The cookie to delete. + * @param {Function} callback The function to invoke when the cookie is deleted. + */ +function removeCookie(cookie, callback) { + var url = 'http' + (cookie.secure ? 's' : '') + '://' + cookie.domain + + cookie.path; + chrome.cookies.remove({url: url, name: cookie.name}, callback); +} + +/** + * Removes all cookies + * @param {Function=} callback The function to invoke when all cookies are + * deleted (optional). + */ +function clearCookies(callback) { + callback = callback || function() {}; + chrome.cookies.getAll({}, function(cookies) { + var len = cookies.length; + // Synchronize the cookie deletion and execute the callback only when all + // cookie deletion functions have called back (finished). + (function doCookieCleanup(i) { + if (i === len) { + callback(); + } else { + removeCookie(cookies[i], function() { + doCookieCleanup(i + 1); + }); + } + })(0); + }); +} + +/** + * Callback for when history deletion is successful + */ +function didClearHistory() { + var time = ~~(localStorage['time']) || CONSTANTS.DEFAULT_TIME; + time = getUnitsForTime(time); + var timeString = (time.time === -1) ? + chrome.i18n.getMessage('notificationTimeAll') : + chrome.i18n.getMessage('notificationTime', + [time.time, time.units]); + var message = chrome.i18n.getMessage('notificationBody', timeString); + var notification = webkitNotifications.createNotification( + chrome.extension.getURL('/images/icon48.png'), + chrome.i18n.getMessage('notificationTitle'), + message); + notification.show(); + setTimeout(function() { + notification.cancel(); + }, 5000); +} + +/** + * Clears the history for the amount of time stored in {@code localStorage} + */ +function clearHistory() { + //Get the values from localStorage + // time is in hours + var time = ~~(localStorage['time']) || CONSTANTS.DEFAULT_TIME; + if (time === -1) { + // Delete everything + chrome.history.deleteAll(didClearHistory); + } else { + // Create the range + var now = (new Date).getTime(); + var range = { + startTime: (now - time * 60 * 60 * 1000), // time from hrs to ms + endTime: now + }; + // Delete history in the range + chrome.history.deleteRange(range, didClearHistory); + } +} + +/** + * Executes when the user clicks the browser action. Uses stored values from + * {@code localStorage} + */ +chrome.browserAction.onClicked.addListener(function(tab) { + //calls the method to provide the Google Analytics Data + getAnalyticsData(); + // Get the value from localStorage + var showPrompt = localStorage['prompt'] || CONSTANTS.YES; + + // The confirmation message to ask + var message = chrome.i18n.getMessage('confirmPrompt'); + + // Clear cookies, and then clear the history + if (showPrompt === CONSTANTS.YES) { + confirm(message) && clearCookies(clearHistory); + } else { + clearCookies(clearHistory); + } +}); + + var _gaq = _gaq || []; +/** + * provides the Google analytics data + */ +function getAnalyticsData() { + _gaq.push(['_setAccount', 'UA-28968723-1']); + _gaq.push(['_trackPageview']); + + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; + ga.async = true; + ga.src = 'https://ssl.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; + s.parentNode.insertBefore(ga, s); + })(); +} diff --git a/javascript/options.js b/javascript/options.js new file mode 100644 index 0000000..a3f3b01 --- /dev/null +++ b/javascript/options.js @@ -0,0 +1,86 @@ +// Copyright 2011 Google Inc. All Rights Reserved. + +/** + * @fileoverview Script for the options page. + * @author arunjit@google.com (Arunjit Singh) + */ + +window.addEventListener('load', init, false); + +//Get the constants from the background page +var CONSTANTS = chrome.extension.getBackgroundPage().CONSTANTS; + +/** + * Initializes the i18n strings. + * Loads values from localStorage and applies them to the elements + */ +function init() { + // Localize strings: + CONSTANTS.TIMES.forEach(function(time) { + var selector = 'input[name=time][value="{t}"], .opt-label#opt-{t}' + .supplant({t: time}); + var elements = $(selector); + time = getUnitsForTime(time); + var message = (time.time === -1) ? + chrome.i18n.getMessage('optionsTimeAll') : + chrome.i18n.getMessage('optionsTime', + [time.time, time.units]); + elements[0].title = message; + elements[1].innerText = message; + }); + + $('#optionsTitle')[0].innerText = chrome.i18n.getMessage('optionsTitle'); + $('#optionsHeader')[0].innerText = chrome.i18n.getMessage('optionsHeader'); + $('#optionsPrompt')[0].innerText = chrome.i18n.getMessage('optionsPrompt'); + $('#optionsTimeFor')[0].innerText = chrome.i18n.getMessage('optionsTimeFor'); + $('#optionsSaved > b')[0].innerText = chrome.i18n.getMessage('optionsSaved'); + + // Bind all the callbacks + $('#opt-time input.opt-chk[type=radio]').forEach(function(e) { + e.onclick = toggle; + }); + $('#opt-prompt input.opt-chk[type=checkbox]').forEach(function(e) { + e.onclick = setPrompt; + }); + + // Load or set localStorage data + var time = ~~(localStorage['time']) || + (localStorage['time'] = CONSTANTS.DEFAULT_TIME); + var showPrompt = localStorage['prompt'] || + (localStorage['prompt'] = CONSTANTS.YES); + + $('input[name=time][value="' + time + '"]')[0].checked = true; + $('input[name=prompt]')[0].checked = (showPrompt === CONSTANTS.YES); +} + +/** + * Toggles the value in localStorage for the element selected + * @this {HTMLInputElement} The element (radio button) that was clicked. + */ +function toggle() { + localStorage['time'] = this.value; + optionSaved(); +} + +/** + * Sets the {@code localStorage.prompt} property when selected + * @this {HTMLInputElement} The element (checkbox) that was clicked. + */ +function setPrompt() { + localStorage['prompt'] = this.checked ? CONSTANTS.YES : CONSTANTS.NO; + optionSaved(); +} + +// For rapid changes/saves +var isSaving = null; +/** + * Updates the UI to indicate save completed + */ +function optionSaved() { + var element = $('#optionsSaved')[0]; + element.classList.add('show'); + clearTimeout(isSaving); + isSaving = setTimeout(function() { + element.classList.remove('show'); + }, 1000); +} diff --git a/javascript/util.js b/javascript/util.js new file mode 100644 index 0000000..a428b3b --- /dev/null +++ b/javascript/util.js @@ -0,0 +1,51 @@ +// Copyright 2011 Google Inc. All Rights Reserved. + +/** + * @fileoverview Some basic, useful utility functions. + */ + +/** + * Pours the data in template string. + * @param {Object} datObject The data object to be filled in template string. + * @return {string} The new string created from template string and filled + * with the given data. + */ +String.prototype.supplant = function(datObject) { + return this.replace(/{([^{}]*)}/g, + function(match, firstSubMatch) { + var replace = datObject[firstSubMatch]; + return (typeof replace === 'string' || typeof replace === 'number') ? + replace : match; + }); +}; + +/** + * Queries the DOM. + * @param {string} selector Selector to execute. + * @param {HTMLElement=} context HTMLElement to query (optional). + * @return {Array.} Array of matched elements (non-live). + */ +function $(selector, context) { + if (!(context && context instanceof HTMLElement)) { + context = document; + } + return Array.prototype.slice.call(context.querySelectorAll(selector)); +} + +/** + * Provides units for time, given in hours, as hours or days. + * @param {number} time The time, in hours. + * @return {Object} The time and units of time (pluralized and localized). + */ +function getUnitsForTime(time) { + var units = 'hour'; + if (time >= 24) { + units = 'day'; + time = time / 24; + } + units = chrome.i18n.getMessage(units + (time === 1 ? '' : 's') + 'String'); + return { + time: time, + units: units + }; +} diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..e50a4a7 --- /dev/null +++ b/manifest.json @@ -0,0 +1,37 @@ +{ + "name": "__MSG_name__", + "default_locale": "en", + "manifest_version": 2, + "version": "1.5", + "description": "__MSG_description__", + "permissions": [ + "tabs", + "history", + "cookies", + "notifications", + "http://*/*", + "https://*/*" + ], + "background": { + "scripts": [ + "javascript/background.js", + "javascript/util.js", + "javascript/clearhistory.js" + ] + }, + "options_page": "views/options.html", + "browser_action": { + "default_icon": "images/icon32.png", + "default_title": "__MSG_title__" + }, + "icons": { + "16": "images/icon16.png", + "32": "images/icon32.png", + "48": "images/icon48.png", + "128": "images/icon128.png" + }, + "web_accessible_resources": [ + "images/icon48.png" + ], + "content_security_policy": "script-src 'self' https://ssl.google-analytics.com; object-src 'self'" +} diff --git a/views/options.html b/views/options.html new file mode 100644 index 0000000..ad899fa --- /dev/null +++ b/views/options.html @@ -0,0 +1,77 @@ + + + + + + + + + + +
+
+

+ Clear History logo + +

+
+
+
+
+
+ +
+
+
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+ +
+ +
+
+
+
+
+
+
+   +
+
+
+ +
+
+
+
+
+
+ +
+
+
+ + + + -- 2.39.5