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
Forum Updated to NodeBB v4.3 + New Features

Get url from browsers address bar

Scheduled Pinned Locked Moved Solved General and Desktop
12 Posts 5 Posters 1.3k Views 4 Watching
  • 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.
  • sierdzioS Offline
    sierdzioS Offline
    sierdzio
    Moderators
    wrote on 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
    3
    • sierdzioS sierdzio

      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 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.

      JKSHJ 1 Reply Last reply
      0
      • M Offline
        M Offline
        mchinand
        wrote on 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.

        JonBJ H 2 Replies Last reply
        0
        • M mchinand

          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.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #5

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

          1 Reply Last reply
          1
          • M mchinand

            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 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

              @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.

              JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on 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
              3
              • JKSHJ JKSH

                @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 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!

                JKSHJ 1 Reply Last reply
                0
                • H hbatalha

                  @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!

                  JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on 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
                  0
                  • JKSHJ JKSH

                    @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 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

                    JonBJ 1 Reply Last reply
                    0
                    • H hbatalha

                      @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

                      JonBJ Offline
                      JonBJ Offline
                      JonB
                      wrote on 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
                      0
                      • JonBJ JonB

                        @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 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

                        • Login

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