Exclude All Subsites & All Subdomains From Google Search Results - Autohotkey












0















How can i Exclude All Subsites & All Subdomains From Google Search Results.



I want to do With Autohotkey a Google Query Search that is able to do this:



1 - searching into all the existing Homepages on Internet. Results: www.allsites.com



2 - Without Subdomains Results: www.???.allsites.com



3 - and Without Subsites Results: www.allsites.com/.../.../...



I did Write this AHK Script,



With this you can select text and do a search.



1 - These search results are only come from out One Homepage and not from all Homepages.



(site:autohotkey.com but i want this site:*.com -/ and then exclude all the subsites Results)



2 - And the search results are included with all the subsites.



#SingleInstance force

; + = Shift
; ! = Alt
; ^ = Ctrl
; # = Win (Windows logo key)

GroupAdd, Browser, ahk_class Chrome_WidgetWin_1 ; Chrome or Iron
GroupAdd, Browser, ahk_class IEFrame ; Internet Explorer
GroupAdd, Browser, ahk_class MozillaWindowClass ; FireFox
GroupAdd, Browser, ahk_class ApplicationFrameWindow ; Edge

esc::exitapp

;select text and do a [site:autohotkey.com] search
f1:: ; Click <f1> Key to do a google search
If WinActive("ahk_group Browser")
{
send ^c ;copy the selected text to clipboard memory
sleep 150
send ^t ;CTRL+t - new tab + goto address bar
sleep 150
texta = https://www.google.com/?gfe_rd=cr&gws_rd=cr#q=site:autohotkey.com+
textb = %clipboard% ;selected text
textc = &lr=lang_us&hl=us&num=100 ; google parameters
clipboard=%texta%%textb%%textc%
sleep 150
send ^v ; paste the selected text
sleep 250
send {enter}
clipboard=%textb%
}
return


Note: the reason why i want this is, scrub/clean all the backlinks/articles that is pointing to the same Homepage, so that you will find all the relevant Homepages related to that keyword.



homepage vs subdomains










share|improve this question





























    0















    How can i Exclude All Subsites & All Subdomains From Google Search Results.



    I want to do With Autohotkey a Google Query Search that is able to do this:



    1 - searching into all the existing Homepages on Internet. Results: www.allsites.com



    2 - Without Subdomains Results: www.???.allsites.com



    3 - and Without Subsites Results: www.allsites.com/.../.../...



    I did Write this AHK Script,



    With this you can select text and do a search.



    1 - These search results are only come from out One Homepage and not from all Homepages.



    (site:autohotkey.com but i want this site:*.com -/ and then exclude all the subsites Results)



    2 - And the search results are included with all the subsites.



    #SingleInstance force

    ; + = Shift
    ; ! = Alt
    ; ^ = Ctrl
    ; # = Win (Windows logo key)

    GroupAdd, Browser, ahk_class Chrome_WidgetWin_1 ; Chrome or Iron
    GroupAdd, Browser, ahk_class IEFrame ; Internet Explorer
    GroupAdd, Browser, ahk_class MozillaWindowClass ; FireFox
    GroupAdd, Browser, ahk_class ApplicationFrameWindow ; Edge

    esc::exitapp

    ;select text and do a [site:autohotkey.com] search
    f1:: ; Click <f1> Key to do a google search
    If WinActive("ahk_group Browser")
    {
    send ^c ;copy the selected text to clipboard memory
    sleep 150
    send ^t ;CTRL+t - new tab + goto address bar
    sleep 150
    texta = https://www.google.com/?gfe_rd=cr&gws_rd=cr#q=site:autohotkey.com+
    textb = %clipboard% ;selected text
    textc = &lr=lang_us&hl=us&num=100 ; google parameters
    clipboard=%texta%%textb%%textc%
    sleep 150
    send ^v ; paste the selected text
    sleep 250
    send {enter}
    clipboard=%textb%
    }
    return


    Note: the reason why i want this is, scrub/clean all the backlinks/articles that is pointing to the same Homepage, so that you will find all the relevant Homepages related to that keyword.



    homepage vs subdomains










    share|improve this question



























      0












      0








      0








      How can i Exclude All Subsites & All Subdomains From Google Search Results.



      I want to do With Autohotkey a Google Query Search that is able to do this:



      1 - searching into all the existing Homepages on Internet. Results: www.allsites.com



      2 - Without Subdomains Results: www.???.allsites.com



      3 - and Without Subsites Results: www.allsites.com/.../.../...



      I did Write this AHK Script,



      With this you can select text and do a search.



      1 - These search results are only come from out One Homepage and not from all Homepages.



      (site:autohotkey.com but i want this site:*.com -/ and then exclude all the subsites Results)



      2 - And the search results are included with all the subsites.



      #SingleInstance force

      ; + = Shift
      ; ! = Alt
      ; ^ = Ctrl
      ; # = Win (Windows logo key)

      GroupAdd, Browser, ahk_class Chrome_WidgetWin_1 ; Chrome or Iron
      GroupAdd, Browser, ahk_class IEFrame ; Internet Explorer
      GroupAdd, Browser, ahk_class MozillaWindowClass ; FireFox
      GroupAdd, Browser, ahk_class ApplicationFrameWindow ; Edge

      esc::exitapp

      ;select text and do a [site:autohotkey.com] search
      f1:: ; Click <f1> Key to do a google search
      If WinActive("ahk_group Browser")
      {
      send ^c ;copy the selected text to clipboard memory
      sleep 150
      send ^t ;CTRL+t - new tab + goto address bar
      sleep 150
      texta = https://www.google.com/?gfe_rd=cr&gws_rd=cr#q=site:autohotkey.com+
      textb = %clipboard% ;selected text
      textc = &lr=lang_us&hl=us&num=100 ; google parameters
      clipboard=%texta%%textb%%textc%
      sleep 150
      send ^v ; paste the selected text
      sleep 250
      send {enter}
      clipboard=%textb%
      }
      return


      Note: the reason why i want this is, scrub/clean all the backlinks/articles that is pointing to the same Homepage, so that you will find all the relevant Homepages related to that keyword.



      homepage vs subdomains










      share|improve this question
















      How can i Exclude All Subsites & All Subdomains From Google Search Results.



      I want to do With Autohotkey a Google Query Search that is able to do this:



      1 - searching into all the existing Homepages on Internet. Results: www.allsites.com



      2 - Without Subdomains Results: www.???.allsites.com



      3 - and Without Subsites Results: www.allsites.com/.../.../...



      I did Write this AHK Script,



      With this you can select text and do a search.



      1 - These search results are only come from out One Homepage and not from all Homepages.



      (site:autohotkey.com but i want this site:*.com -/ and then exclude all the subsites Results)



      2 - And the search results are included with all the subsites.



      #SingleInstance force

      ; + = Shift
      ; ! = Alt
      ; ^ = Ctrl
      ; # = Win (Windows logo key)

      GroupAdd, Browser, ahk_class Chrome_WidgetWin_1 ; Chrome or Iron
      GroupAdd, Browser, ahk_class IEFrame ; Internet Explorer
      GroupAdd, Browser, ahk_class MozillaWindowClass ; FireFox
      GroupAdd, Browser, ahk_class ApplicationFrameWindow ; Edge

      esc::exitapp

      ;select text and do a [site:autohotkey.com] search
      f1:: ; Click <f1> Key to do a google search
      If WinActive("ahk_group Browser")
      {
      send ^c ;copy the selected text to clipboard memory
      sleep 150
      send ^t ;CTRL+t - new tab + goto address bar
      sleep 150
      texta = https://www.google.com/?gfe_rd=cr&gws_rd=cr#q=site:autohotkey.com+
      textb = %clipboard% ;selected text
      textc = &lr=lang_us&hl=us&num=100 ; google parameters
      clipboard=%texta%%textb%%textc%
      sleep 150
      send ^v ; paste the selected text
      sleep 250
      send {enter}
      clipboard=%textb%
      }
      return


      Note: the reason why i want this is, scrub/clean all the backlinks/articles that is pointing to the same Homepage, so that you will find all the relevant Homepages related to that keyword.



      homepage vs subdomains







      google-chrome autohotkey google-search search-engines






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 23 at 19:30







      stevecody

















      asked Jan 23 at 14:30









      stevecodystevecody

      1015




      1015






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1397492%2fexclude-all-subsites-all-subdomains-from-google-search-results-autohotkey%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1397492%2fexclude-all-subsites-all-subdomains-from-google-search-results-autohotkey%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

          Mangá

           ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕