UrlChecker icon indicating copy to clipboard operation
UrlChecker copied to clipboard

Option to open a specific Url In seperate browser directly

Open heartlog opened this issue 1 year ago • 4 comments

Describe a related problem (optional)

Suppose i want to open https://website.com/* in one browser, url checker don't come thant much handy. Add module to pass the url checker and directly open link into my defined browser.

Describe your suggested feature

If I try to open specific links, it'll open it to my desired browser directly.

Describe alternatives you've considered for your suggested feature

  • Something like default browser for url -

Other details

No response

Acknowledgements

  • [X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open issue.
  • [X] I have written a short but informative title.
  • [X] I will fill out all of the requested information in this form.

heartlog avatar Jun 02 '24 12:06 heartlog

I support this feature request. For example, I get emails every day from several vendors. I don't want to go through URLchecker when I open the links in the email, just go straight to the browser.

I imagine this could work like a pattern match in the hosts fille, or similar.

ncoleman avatar Jul 28 '24 10:07 ncoleman

Version 3.0 is almost there with the "Automations" feature. While you might not be able to specify the browser, the app should remember the last browser used for each URL and automatically open it in that browser directly.

Example (Google)

  1. Click any link that has the Google domain (ex: https://google.com)

  2. Select the Browser you want it to use, I will use FireFox for this example.

  3. Now go back to URLCheck

  4. Click Automations and enable both options

  5. Click Json editor (probably a good idea to read the instructions)

  6. Paste the code below inside it, replacing all the content: ("Unshort bit.ly" is the default example that is already in the file, I just added a new entry with my Google example)

{
  "Unshort bit.ly": {
    "regex": "https?:\/\/bit\\.ly\/.*",
    "action": "unshort",
    "enabled": false
  },
  "Google": {
    "regex": "https?:\/\/(www\\.)?google\\.com.*",
    "action": "open",
    "enabled": true
  }
}
  1. Save

  2. Click on any link from Google's domain. (it should open it directly in the browser you selected in step 2.)


I would love if we could actually define the browser/app that will be used to open the matched regex.

Also, it would be nice to allow an array/list in the regex, like:

    "regex": [
        "https?:\/\/(www\\.)?site1\\.com.*", 
        "https?:\/\/(www\\.)?site2\\.com.*"
    ],

I understand you can adapt the regex to archive something similar, but things gets ugly pretty fast.

KaXaSA avatar Nov 22 '24 02:11 KaXaSA

I would love if we could actually define the browser/app that will be used to open the matched regex.

I expect to add this for the next version. I didn't add it at the first iteration because I wanted to start simple (and avoid taking several more months!). This way you can also provide feedback and I can adapt.

Also, it would be nice to allow an array/list in the regex, like:

With regex you can easily have this by just concatenating with | like "https?:\/\/(www\\.)?site1\\.com.*|https?:\/\/(www\\.)?site2\\.com.*", or even extract the common parts "https?:\/\/(www\\.)?(site1\\.com|site2\\.com).*" but I think Pablo is going to implement that soon, should be easy and will make it more explicit

TrianguloY avatar Nov 22 '24 10:11 TrianguloY

I must say I find funny the coincidence. With a difference of just one day, the same feature, asked for similar reasons and using the same format, tucked away after a separator line.

Anyway, there is the PR.

PabloOQ avatar Nov 22 '24 15:11 PabloOQ

I must say I find funny the coincidence. With a difference of just one day, the same feature, asked for similar reasons and using the same format, tucked away after a separator line.我必须说我觉得这个巧合很有趣。仅相差一天,同样的功能,出于相似的原因并使用相同的格式,被隐藏在分隔线之后。

Anyway, there is the PR.无论如何,这就是那个 PR。

Still no progress? What I’m looking for is the following behavior:

If only a single native app is present, it will automatically be opened. If no native app is present, all browsers are listed. Ideally, the chosen browser will also open automatically if no native app can handle the clicked link.

qpst4 avatar Apr 09 '25 07:04 qpst4