Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to create a bookmark that will open the ClearBrowserData in Chrome in a new window, so far I have managed to get this,

javascript:window.open("'chrome://chrome/settings/clearBrowserData'","_blank","toolbar=no,menubar=0,status=0,copyhistory=0,scrollbars=yes,resizable=1,location=0,Width=450,Height=450") ;

But somehow it will not work but will open a blank window, what am I doing wrong?

Kindly note that I want this to work with one click, and not with a shortcut.

share|improve this question
    
Try "_tab" instead of "_blank". Try also to Allow all pop-ups. –  harrymc Jan 6 '13 at 8:37
    
Sorry mate, it didn't work –  James Young Jan 6 '13 at 14:40
    
I don't have Chrome so can't test, but what about doing instead of window.open : chrome.tabs.create({url:'chrome://settings/clearBrowserData'}) ? –  harrymc Jan 6 '13 at 14:51
    
Still not working :( –  James Young Jan 6 '13 at 15:27
1  
Then I believe that Chrome simply does not allow this in Javascript as a security feature. But let's wait and see if somebody else has more info on the subject. –  harrymc Jan 6 '13 at 16:29

4 Answers 4

I don't think this is possible.

After tying it myself, and then reviewing similar posts I am confident it can't be done, simply because it could be a security vunrability.

share|improve this answer
up vote 4 down vote accepted

A Chrome developer has confirmed to me that this will not work as already explained in the comments earlier, and he advised me to use the ClearBrowserData extension.

share|improve this answer
    
Then the deleted answer by @daverook is correct. It currently needs 2 more undelete votes. –  harrymc Jan 10 '13 at 12:31
    
That answer is undeleted now. –  harrymc Jan 12 '13 at 19:42

For those that do want a shortcut it's: Ctrl+Shift+Delete

share|improve this answer
    
+1 for a faster solution and using the <kbd> tag ;) –  booyaa Jan 11 '13 at 9:47

I've had the following URL bookmarked since I got version 23 and it works every time.

chrome://chrome/settings/clearBrowserData

Just use right-mouse-button to select "Open in new tab" or click Middle-Mouse-Button on 3-Button Mouse

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.