[Solved]Assign link for New Tab
-
A Former User last edited by leocg
Is it possible to open my link when "new tab" pressed. For example - i want google.com to be opened every time "new tab" is pressed by me. How can i do it?
-
burnout426 Volunteer last edited by burnout426
In Opera, goto the URL
opera://settings/startPage
. Enable "Hide Speed Dial", disable "Receive promoted...", disable "Show Speed Dial suggestions", and disable "Show news...". But, make sure "Hide search box" is disabled. You want the search box on the start page to show.Then, goto the URL
opera://settings/wallpapers
and disable "Enable wallpapers".All that is to just make the startpage load faster. You can skip all those steps if you want.
Now, create a folder on you desktop named "Override Startpage".
In it, create these two files with a text editor (like Notepad):
manifest.json:
{ "name" : "Override Startpage", "version" : "0.1", "description" : "Override Startpage", "permissions": [ "tabs" ], "background": { "scripts": ["background.js"] }, "manifest_version": 2 }
background.js:
var page = "https://www.google.com/"; var start = "chrome://startpage/"; chrome.tabs.onCreated.addListener(function(tab) { if (tab.status === "complete" && tab.url === start) { chrome.tabs.update(tab.id, { url: page }); } }); chrome.tabs.onUpdated.addListener(function(tabId, changeInfo, tab) { if (changeInfo.status === "complete" && tab.url === start) { chrome.tabs.update(tabId, { url: page }); } });
Then, in Opera, goto the URL ```opera://extensions`. Then, switch on Developer Mode at the top right. Then, click the "Load unpacked" button and point it to the "Override Startpage" folder that's on your desktop.
Any time you want to change the page that's loaded, edit the "page" URL in background.js and click the reload button next to the extension on the
opera://extensions
page.You can then goto
opera://settings/onStartup
and adjust settings there too if needed. -
A Former User last edited by
@burnout426 Thank you. This works perfectly for me. I really don't believe the Custom New Tab extension was malware whatever Opera says. I was originally attracted to Opera because of its many customisations - the Chrome version has never matched up to the old Presto one and it is getting worse, while Vivaldi is getting more customisable. I think we are almost at the point where Vivaldi is better apart from the lack of VPN.
-
A Former User last edited by A Former User
@burnout426 I just wanted to take a moment to send a big THANK YOU!
This was what I needed to finally get my custom homepage to come up again.(My preference is to see opera://news when I open a new tab - it helps me stay on top of the latest news stories throughout the day and the default opera tab page pushes all the news stories to the bottom of the page where I don't see it unless I go out of my way).
Opera devs if you read the forums please take note - many users want to be able to set a custom tab page not use whatever YOU think we should see.
See my other post here: https://forums.opera.com/topic/30325/custom-new-tab-homepage.
I almost gave up on Opera and switched to another browser - that's how much this bugged me.