Cr24{"content_scripts": [{"matches": ["chrome://newtab/*"], "run_at": "document_start", "js": ["CustomNewTab.js"]}], "description": "Customize your new tab page.", "format_version": 1, "toolstrips": ["CustomNewTab_toolstrip.html"], "version": "0.2", "zip_hash": "1064f5b125cacb4175da38cb32819643a638d752f7797192b824962c4df2a160", "id": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2", "name": "CustomNewTab"}PKGz:eBB config.xml 0 http://www.google.com/ false false false false PK-x: -\; ; CustomNewTab.jsvar maxWaitTime = 1000; var currentWait = 0; console.debug("CS: Initiating... "); init(); var myport = chrome.extension.connect(); myport.onMessage.addListener(handleMessage); function handleMessage(settings) { console.debug("CS: Handling received settings..."); console.debug(settings); console.debug("CS: Start customizing..."); console.debug(settings); customizeNewTab(settings); console.debug("CS: Done customizing..."); if(settings["displayAnotherPageInstead"] != "1"){ showBody(); } console.debug("CS: Done handling received settings..."); } function init() { var theBody = document.body; if(theBody == null){ console.debug("CS: Body not loaded yet..."); if(currentWait < maxWaitTime){ currentWait++; window.setTimeout(init,1); } else { currentWait=0; } return; } console.debug("CS: Hiding body..."); theBody.style.display = "none"; console.debug("CS: Sending message..."); myport.postMessage("getsettings"); console.debug("CS: Done sending message..."); } function showBody() { console.debug("CS: Showing body..."); document.body.style.display = "block"; } function customizeNewTab(settings) { if(document.body == null) { console.debug("CS: Cannot customize, no body"); window.setTimeout(customizeNewTab,1,settings); return; } if(settings['displayAnotherPageInstead']=="1"){ console.debug("CS: Redirecting"); window.location = settings['pageToDisplayURL']; return; } if(settings['displayAnotherPageInstead']=="2"){ console.debug("CS: Adding IFrame"); addPageIFrame(settings['pageToDisplayURL']); } if(settings['hideMostVisited'] == "true") removeDiv("mostvisitedsection"); if(settings['hideSearches'] == "true") hideDiv("searches"); if(settings['hideRecentBookmarks'] == "true") hideDiv("recentlyBookmarked"); if(settings['hideRecentlyClosedTabs'] == "true") hideDiv("recentlyClosedTabs"); } function hideDiv(divName){ var theDiv = document.getElementById(divName); if(theDiv == null){ if(currentWait < maxWaitTime){ currentWait++; window.setTimeout(hideDiv,1,divName); } else { currentWait=0; } return; } theDiv.style.visibility = "hidden"; } function removeDiv(divName){ var theDiv = document.getElementById(divName); if(theDiv == null){ if(currentWait < maxWaitTime){ currentWait++; window.setTimeout(removeDiv,1,divName); } else { currentWait=0; } return; } theDiv.parentNode.removeChild(theDiv); } function addPageIFrame(theURL){ frame = document.createElement("IFRAME"); frame.setAttribute("src", theURL); frame.style.width = 100+"%"; frame.style.height = 50+"%"; var theBody = document.body; if(theBody == null){ if(currentWait < maxWaitTime){ currentWait++; window.setTimeout(addPageIFrame,1,theURL); } else { return; } } else { theBody.insertBefore(frame, theBody.firstChild); } }PK`:PܣCustomNewTab_toolstrip.html
PKv:1EE dashboard.css * { margin:0px; padding:0px; } body { font-family:Verdana; color:black; } #container { width:800px; margin: 10px auto; } #container div { width:100%; margin:0px; padding:0px; } #header { background-image:url(ui/header.png); height:13px; } #content { background-image:url(ui/background.png); } #content table{ width:70%; margin-left:auto; margin-right:auto; } #footer { background-image:url(ui/footer.png); height:13px; } #formTable { width:100%; } #xmlArea { width:100%; margin:auto; } .label { font-weight:bold; text-align:right; padding:10px; } .centerLabel{ font-weight:bold; text-align:center; padding:10px; } h1 { font-size:30px; text-align:center; margin-bottom:15px; text-shadow: rgb(255, 255, 255) 1px 1px 0px; } PK-a:}}dashboard.html Dashboard

CustomNewTab Dashboard

Redirect:
URL:


Generated XML:
Copy the generated xml and paste it inside user_data_directory/Extensions/[...]AA2/config.xml
PKa:uu manifest.json{ "format_version": 1, "id": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA2", "version": "0.2", "name": "CustomNewTab", "description": "Customize your new tab page.", "toolstrips": [ "CustomNewTab_toolstrip.html" ], "content_scripts": [ { "js": ["CustomNewTab.js"], "matches": ["chrome://newtab/*"], "run_at": "document_start" } ] }PK1O: ui/background.pngPNG  IHDR :TsRGBgAMA a cHRMz&u0`:pQ<PLTEtEXtSoftwarePaint.NET v3.36%eIDAT8OA@0 W5}v0ߛ6r؍b'lGR43ЈS/9|]#Dx  nᗌ3\w8wo *gIENDB`PKO: ui/footer.pngPNG  IHDR ft/sRGBgAMA a cHRMz&u0`:pQ<PLTE]tEXtSoftwarePaint.NET v3.36%>IDAThCWQ1 E)(c4K("E)A0;JQE{zq{asg!AE~n|NJ98#V >wbBWŠ1pȝAD% (rʸJn_X\3ޒ~=9{/ se. fuYw~ek. cuv`? r),ɬaqWή> ּV0L-WQ5 1,;SUZ-:bx?R-R:Bլso[ JfyHA^@@R$\.5J(%( /s矁$=A6]!CdeN/ J&@2InD"q\#x| L FWDF `BdKd _<2Yr&G Ţ-=֤G6wY8̆9̌)hN2JbN4BaQCyqV#)&A)Z8Lq8HAN$/ #9mA6oNDIENDB`PKO:֊d ui/header.pngPNG  IHDR ft/sRGBgAMA a cHRMz&u0`:pQ<PLTE]tEXtSoftwarePaint.NET v3.36%7IDAThC[WRQI EI%Ir40CEѼ(y!( 0ι7T>{sP#7Z%@R&W\.T*?IX R(7W!f d2d5JV@*HA2\" H| $H,{ ހh4:O^W$́Y$3   '  A@?y |>_%^<"t :zHځl# _"y5\kɚ\{񦸷쁛5#7=yG<gq*)1Fu.jaXLS9K0II10I 2HI"a-#y@F,z"}aq ^IX4EOYW-Kk[z^ՙGdӲF5Ш˚5o@N׫{O {t@ mkjt)5@ z9-u o܈IENDB`PKW:' ui/icon.pngPNG  IHDRasRGBgAMA a cHRMz&u0`:pQ<tEXtSoftwarePaint.NET v3.36%IDAT8OSK[Q~cEFD2T bEcw!tк: )jgh.ETZE͏&*IMnz&|8_GSo*IyׁkXdk ,{dB +A&ogjVJM@K