minbrowser / min

A fast, minimal browser that protects your privacy
https://minbrowser.org/
Apache License 2.0
7.84k stars 695 forks source link

Requesting for a new feature and reporting bug #2164

Open tasinone opened 1 year ago

tasinone commented 1 year ago

After searing for a long time finally I found Min which is exactly what I was looking for. This browser is so perfect and does as it says. Min is simple, and lightweight, yet so powerful and I am very glad to have this browser on my computer. Feature request I am using start.me service for bookmarks, notes, and tasks. so having a "custom URL as homepage" will be very helpful. Else please provide a user script that will open a specific webpage whenever I open the Min browser. min

Bugs and issues

  1. Default password manager is not working properly. It is saving the password but not working while I am doing login to that website. Also, Bitwarden not working too.
  2. I have a chatting website made by blabax. When I try to open a link from that website Min shows about:blank#blocked and can not open that website.
tasinone commented 1 year ago

I have used the below userscript for a custom homepage but it isn't working.

window.addEventListener('load', function() {
    window.location.replace("https://start.me/p/xbOQB0/startpage");
});

I have named the file as Homepage.js and the file is located at C:\Users\Administrator\AppData\Roaming\Min\userscripts But when I restart the browser nothing happens. It isn't opening the webpage. And yes userscripts is enabled in browser settings.

PalmerAL commented 1 year ago

Default password manager is not working properly. It is saving the password but not working while I am doing login to that website. Also, Bitwarden not working too.

What URL?

I have a chatting website made by blabax. When I try to open a link from that website Min shows about:blank#blocked and can not open that website.

Can you share the URL for this? (This may not get fixed though, our support for popups isn't very good in general)

I have used the below userscript for a custom homepage but it isn't working.

You did it correctly, but the script won't run on a new tab, because there's no page loaded for it to run in.

We should add a setting for a custom new tab URL; I'm probably not going to work on it soon, but you're welcome to make a PR if you want.

tasinone commented 1 year ago

Here is the link I want to open whenever I open the Min browser. It is not necessary to open this link in a new tab. I want to treat this webpage as a homepage. I have tried the below code too but not working.

Edit:

The code is working but not instantly right after I open the browser. It is opening the specific webpage after some minutes.

// ==UserScript==
// @name Open Link on Browser Start
// @namespace https://example.com/userscripts
// @version 1.0
// @description Opens a specified link in a new tab when the browser starts
// @grant none
// @run-at document-start
// ==/UserScript==

window.addEventListener("load", function() {
  window.open("https://start.me/p/xbOQB0/startpage");
});

This is where I have created the userscripts folder and put the files inside it. It this location correct? min

For blocking youtube ads I tried the below code but it was unable to block YouTube ads.

// ==UserScript==
// @name Block YouTube Ads
// @namespace https://example.com/userscripts
// @version 1.0
// @description Blocks all ads on YouTube
// @match *://*.youtube.com/*
// @grant none
// @run-at document-start
// ==/UserScript==

window.addEventListener("load", function() {
  var observer = new MutationObserver(function(mutations) {
    mutations.forEach(function(mutation) {
      if (mutation.target.id == "player-ads") {
        mutation.target.style.display = "none";
      }
    });
  });
  var config = {
    attributes: true,
    attributeFilter: ["style"],
    childList: true,
    subtree: true
  };
  observer.observe(document.body, config);
});

This is the current browser setting. Screenshot_36