changing the default private browsing page - google-chrome

Is there a way to change the default page that loads up when entering private browsing/incognito? I would like to either replace the page or, preferably, add text to the current one.Can this be done programmatically(not from a plugin/addon/extension)? if not can this be done with a plugin of some sort?the best I could find is an addon for chrome that requires specifically toggling permissions to run in private and it will only work on remote pages and not local pages, which does not fit my needs

1.You must Use chrome-pak-customizer To unpack resources.pak
https://github.com/myfreeer/chrome-pak-customizer/releases
like
pak_mingw64.exe -u resources.pak c:\dir2
2.After this, you must change 12002.html
Content of 12002.html
$i18n{incognitoTabHeading}
$i18n{incognitoTabDescription} {$i18n{learnMore}}
$i18nRaw{incognitoTabFeatures}
$i18nRaw{incognitoTabWarning}
{$i18n{learnMore}}
3.Pack Folder
pak_mingw64.exe -p c:\dir2\pak_index.ini c:\temp\res1.pak
4.Replace resources.pak with Your own in chrome folder!
Voila!

I think this cannot be performed without an extension. I've tried this one: New tab redirect. In the options of the extension you can set the url you need to redirect to (even a local url works) and enable the extension to work in incognito mode in the chrome options. Now when you open incognito mode it loads the url I've set.

Create a shortcut to chrome on desktop.
Right click, select Properties
In Target label under Shortcut, after "C:..\Google\Chrome\Application\chrome.exe" just add -INCOGNITO WWW.GOOGLE.COM without quotes and click Apply.
You may add link to any page you wish to open in incognito instead of WWW.GOOGLE.COM

Related

how can i directly open browser to view html file from vs code?

I write HTML and CSS code in VS Code and for previewing it I need to open file explorer then files then double click them to open them in my default browser.
it takes too much time. is there any proper way for this?
I have tried one live extension called live server but the problem with it is we have to click the 'go live' button any time I want to refresh the code.
If the live server extension is the one by Ritwick Dey..
.. then then after clicking Go Live, it will open your page in the default browser and reload it automatically, every time you save your work.
in some cases, it is helpful to save the folder containing your HTML to a Workspace, in VS Code, especially if you are writing an app using the MVC modal and the HTML and CSS are in subfolders.
You can install an extension called open in browser.
After installation complete restart vscode and go to settings Ctrl + ,. Search for Open-in-browser setting and set your default browser as you can see below:
Then whenever you edit a html file, you can use shortcut Alt + B to open this file in browser.

creating a link to a local file on a locally-run web page (Chrome), while "Local File Links" extenstion is enabled

I want to use the html href attribute as a hyperlink to present a local html file, located on my hard rive.I have the following code, and I'm using the Chrome browser:
List: Specified
The "Local File Links" extension is enabled.
I've also tried:
(a) href="file:///F:......\nameOfLocalFile.html">Specified
(b) List: Specified
It doesn't work and the files are not opened.
Is there a new way today (11/2019) in html to access other files on my hard drive in Chrome (and in other browsers, possibly). Is there a certain extension in Chrome I am missing or a certain keyword in html for achieving this?
I am running Windows 10 and Using Chrome as default browser.
You have done a simple mistake.
Try to change your \ to /.
Click
Your problem will be sorted out

How to Make my Chrome Homepage an Extension

Here is an interesting one. We want to use the extension "Kiosk" for our computers to lock down the browser to only allow our website to play but we need it to auto load to that.
We have another security layer that will lock down the computer on boot up, which we can assign a application to run (chrome in this case). All we need to do is make sure that when Chrome is loaded it boots directly into the "Kiosk" Extension.
We have the extension ID, but we cannot get chrome to assign the extension as the home page.
Has anyone done something like this in the past?
You can add "chrome_url_overrides" inside your manifest.json to override
Chromes new tab and some other Chrome pages.
For example:
"chrome_url_overrides": {
"newtab": "new-tab.html"
}
You can also redirect to any other site within your HTML file.
You can read about it more here.
Edit:
Like I said in the comments you can also create a .bat file to run on startup that is going to open your kiosk app.
The code inside your .bat file can look like this:
start chrome.exe --app-id=afhcomalholahplbjhnmahkoekoijban
You can also add more parameters if you require any more settings when starting chrome.exe.

Is there a way to stop Google Chrome from showing most visited sites on a blank tab?

Whenever I open a new tab in Google Chrome I see the Google search bar plus 8 thumbnails of recently visited (or most visited) sites. I never click on the thumbnails and find them to be annoying. Is there anyway to disable this in Chrome?
I can think of a hacky workaround like creating a blank page someplace and setting that to be the new tab page, but there must be a better way. Any ideas?
Since nobody answered I thought I would post and answer to my question:
Use the Empty New Tab Page extension for a new blank tab instead of the default new tab.
There are also some redirect extensions such as Momentum, which loads a different full screen image each day.
type chrome://flags then Disable "Top Sites from Site Engagement"
Chrome allows extensions to run on chrome:// urls so one such possible future solution is if AdBlock explicitly requests the permission to run on chrome://newtab then you can just block the div with id most-visited. But currently AdBlock does not request this permission.
You could edit the manifest of AdBlock manually to include this permission or suggest it as a future feature.
The default new tap page's url is chrome-search://local-ntp/local-ntp.html. You can press F12 to check it. It's a local resource located in
C:\Program Files (x86)\Google\Chrome\Application\{Version}\resources.pak
or
C:\Users\%username%\AppData\Local\Google\Chrome\Application\{Version}\resources.pak
Open it with a HEX editor, search text
cur.style.opacity = 1.0
, and replace it with
cur.style.opacity = 0.0
Tested on Chrome 77.0.3865.90 .

Chrome extension can't get access to chrome://extension-icon

I'm trying to list other extensions from my Chrome extension, and show their icons.
Another extension (Zenmate VPN) shows other's icons easily. I figured out that it has management permission in it's manifest.
I add "management" to optional_permissions and ask user to enable it after a click.
After that, I can list extensions, but the icons are still unaccessible in the page.
When I add management to permissions section, everything works fine. The problem is that we don't want to add this permission there, because Chrome will disable the extension by default if the updated version asks for more permisssions.
Is there a way to somehow refresh permissions in a page, in order to make icon URLs work (chrome://extension-icon/*), like they work in ZenMate?
If you already have chrome://favicon permission you can use it to display an extension favicon:
<img src="chrome://favicon/chrome-extension://igiofjhpmpihnifddep‌​npngfjhkfenbp/">
In case you didn't have chrome://favicon permission initially, try adding it in optional_permissions. If it won't work, try adding to permissions but first test if it'll disable your extension on update.
Other icon sizes may be specified (in the absence of an actual big icon the default 16x16px is scaled):
Retina 2x DPI: chrome://favicon/size/16#2x/chrome-extension://.......
48px: chrome://favicon/size/48/chrome-extension://.......
I checked if I could go with wOxxOm's answer, and mostly extensions did not have bigger favicons, nor I can request chrome://favicon/* permission: Chrome throws an exeption:
Unchecked runtime.lastError while running permissions.request: 'chrome://favicon/*' is not a recognized permission.
So I found a simple and robust solution: I just close the current tab and create a new one:
permissionsAchieved = function(allowed) {
chrome.tabs.create({ url: "<write current url here>" });
window.close();
},
Done. In the newly opened tab, the icon is shown correctly.
But thanks for a suggestion!