Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Get url from browsers address bar
QtWS25 Last Chance

Get url from browsers address bar

Scheduled Pinned Locked Moved Solved General and Desktop
12 Posts 5 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hbatalha
    wrote on 12 Jul 2021, 10:37 last edited by hbatalha 7 Dec 2021, 11:28
    #1

    I want to be able to register evry website visited in chrome browser and was wondering how I could do it.

    It took me a while before finding a way to do it using win32 api but I am wondering if there might be a Qt way of doing it because I would prefer it to be cross-platform if that is possible. Also because it is being a royal pain setting it up using Win32 api as it has to run on a thread and I am imagining I will go throught the same pain on Linux.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 14 Jul 2021, 05:33 last edited by
      #2

      Want to spy on your users? Not a nice thing to do.

      Anyway, from what you write the best approach seems to be to write a Chrome extension. No need for Qt or WinAPI at all.

      (Z(:^

      H 1 Reply Last reply 14 Jul 2021, 13:04
      3
      • S sierdzio
        14 Jul 2021, 05:33

        Want to spy on your users? Not a nice thing to do.

        Anyway, from what you write the best approach seems to be to write a Chrome extension. No need for Qt or WinAPI at all.

        H Offline
        H Offline
        hbatalha
        wrote on 14 Jul 2021, 13:04 last edited by
        #3

        @sierdzio said in Get url from browsers address bar:

        Want to spy on your users? Not a nice thing to do.

        Naah, not me. I am not kind of programmer. This serves for a feature and the user can turn it on/off.

        Anyway, from what you write the best approach seems to be to write a Chrome extension. No need for Qt or WinAPI at all.

        I read somewhere about this option and even was said that you can easily install it without the user even noticing but that's not a option for me since I am against programs that installs other things in the user computer not even as option for the user to choose unless it is REALLY, but REALLY necessary.

        J 1 Reply Last reply 15 Jul 2021, 05:11
        0
        • M Offline
          M Offline
          mchinand
          wrote on 14 Jul 2021, 15:15 last edited by
          #4

          Can you read from Chrome's history file? It looks like it's a SQLite DB file. On Windows, it's in the user's AppData folder in Local/Google/Chrome/User Data/Default/History.

          J H 2 Replies Last reply 14 Jul 2021, 15:31
          0
          • M mchinand
            14 Jul 2021, 15:15

            Can you read from Chrome's history file? It looks like it's a SQLite DB file. On Windows, it's in the user's AppData folder in Local/Google/Chrome/User Data/Default/History.

            J Offline
            J Offline
            JonB
            wrote on 14 Jul 2021, 15:31 last edited by
            #5

            @mchinand
            OMG, that sounds even worse (for me, the user)!!

            1 Reply Last reply
            1
            • M mchinand
              14 Jul 2021, 15:15

              Can you read from Chrome's history file? It looks like it's a SQLite DB file. On Windows, it's in the user's AppData folder in Local/Google/Chrome/User Data/Default/History.

              H Offline
              H Offline
              hbatalha
              wrote on 15 Jul 2021, 04:53 last edited by
              #6

              @mchinand That would be option if I didn't need it to be instantly, soon as the user enters a page I would like to analyse that link and then take the neccessary actions accordingly. I am not sure that trying to read a file that chrome might be writing at the same time will be good.

              1 Reply Last reply
              0
              • H hbatalha
                14 Jul 2021, 13:04

                @sierdzio said in Get url from browsers address bar:

                Want to spy on your users? Not a nice thing to do.

                Naah, not me. I am not kind of programmer. This serves for a feature and the user can turn it on/off.

                Anyway, from what you write the best approach seems to be to write a Chrome extension. No need for Qt or WinAPI at all.

                I read somewhere about this option and even was said that you can easily install it without the user even noticing but that's not a option for me since I am against programs that installs other things in the user computer not even as option for the user to choose unless it is REALLY, but REALLY necessary.

                J Offline
                J Offline
                JKSH
                Moderators
                wrote on 15 Jul 2021, 05:11 last edited by
                #7

                @hbatalha said in Get url from browsers address bar:

                @sierdzio said in Get url from browsers address bar:

                Anyway, from what you write the best approach seems to be to write a Chrome extension. No need for Qt or WinAPI at all.

                I read somewhere about this option and even was said that you can easily install it without the user even noticing but that's not a option for me since I am against programs that installs other things in the user computer not even as option for the user to choose unless it is REALLY, but REALLY necessary.

                A good browser extension is not hidden. If you user wants it, they can download it from the Chrome Web Store: https://chrome.google.com/webstore/category/extensions

                @hbatalha said in Get url from browsers address bar:

                instantly, soon as the user enters a page I would like to analyse that link and then take the neccessary actions accordingly.

                A Chrome extension can do that, as long as your user has granted it permission to read their browser URL.

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                H 1 Reply Last reply 16 Jul 2021, 21:39
                3
                • J JKSH
                  15 Jul 2021, 05:11

                  @hbatalha said in Get url from browsers address bar:

                  @sierdzio said in Get url from browsers address bar:

                  Anyway, from what you write the best approach seems to be to write a Chrome extension. No need for Qt or WinAPI at all.

                  I read somewhere about this option and even was said that you can easily install it without the user even noticing but that's not a option for me since I am against programs that installs other things in the user computer not even as option for the user to choose unless it is REALLY, but REALLY necessary.

                  A good browser extension is not hidden. If you user wants it, they can download it from the Chrome Web Store: https://chrome.google.com/webstore/category/extensions

                  @hbatalha said in Get url from browsers address bar:

                  instantly, soon as the user enters a page I would like to analyse that link and then take the neccessary actions accordingly.

                  A Chrome extension can do that, as long as your user has granted it permission to read their browser URL.

                  H Offline
                  H Offline
                  hbatalha
                  wrote on 16 Jul 2021, 21:39 last edited by
                  #8

                  @JKSH OK, I will have to learn how to write a Chrome extension and then get Qt to download it and the user to grant it permission though thank you!

                  J 1 Reply Last reply 17 Jul 2021, 03:40
                  0
                  • H hbatalha
                    16 Jul 2021, 21:39

                    @JKSH OK, I will have to learn how to write a Chrome extension and then get Qt to download it and the user to grant it permission though thank you!

                    J Offline
                    J Offline
                    JKSH
                    Moderators
                    wrote on 17 Jul 2021, 03:40 last edited by
                    #9

                    @hbatalha said in Get url from browsers address bar:

                    OK, I will have to learn how to write a Chrome extension and then get Qt to download it and the user to grant it permission though thank you!

                    You're welcome.

                    I'm not sure what you mean by "get Qt to download it" though -- could you please explain? A web browser extension does not involve Qt.

                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                    H 1 Reply Last reply 17 Jul 2021, 09:26
                    0
                    • J JKSH
                      17 Jul 2021, 03:40

                      @hbatalha said in Get url from browsers address bar:

                      OK, I will have to learn how to write a Chrome extension and then get Qt to download it and the user to grant it permission though thank you!

                      You're welcome.

                      I'm not sure what you mean by "get Qt to download it" though -- could you please explain? A web browser extension does not involve Qt.

                      H Offline
                      H Offline
                      hbatalha
                      wrote on 17 Jul 2021, 09:26 last edited by
                      #10

                      @JKSH said in Get url from browsers address bar:

                      I'm not sure what you mean by "get Qt to download it" though -- could you please explain?

                      I meant that when the user installs the app, the app should download the extension or asks the user to add the extension

                      J 1 Reply Last reply 17 Jul 2021, 09:33
                      0
                      • H hbatalha
                        17 Jul 2021, 09:26

                        @JKSH said in Get url from browsers address bar:

                        I'm not sure what you mean by "get Qt to download it" though -- could you please explain?

                        I meant that when the user installs the app, the app should download the extension or asks the user to add the extension

                        J Offline
                        J Offline
                        JonB
                        wrote on 17 Jul 2021, 09:33 last edited by
                        #11

                        @hbatalha
                        I do not know, but since it's a Chrome extension there may be no download or install to do from Qt. Users may need to do this 100% through Chrome?

                        H 1 Reply Last reply 17 Jul 2021, 09:42
                        0
                        • J JonB
                          17 Jul 2021, 09:33

                          @hbatalha
                          I do not know, but since it's a Chrome extension there may be no download or install to do from Qt. Users may need to do this 100% through Chrome?

                          H Offline
                          H Offline
                          hbatalha
                          wrote on 17 Jul 2021, 09:42 last edited by
                          #12

                          @JonB Doesn't Chrome provide any api maybe? I've had apps asking me to add extensions, others download and just asks me enable them. There sure is a way, I will need to find it.

                          1 Reply Last reply
                          0

                          5/12

                          14 Jul 2021, 15:31

                          • Login

                          • Login or register to search.
                          5 out of 12
                          • First post
                            5/12
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved