remove google from web page?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SwissProgrammer
    New Member
    • Jun 2020
    • 220

    remove google from web page?

    Is there javascript already written that can be placed into the url location box that would remove all variations of anything relating to Google from a web page?

    Example of similar activity:
    In Firefox, on Microsoft Windows, I can right-mouse-click on a web page, then press the "Q" key on the keyboard, and then in the "Search HTML" input box type Google, then press the Enter key on the keyboard, then see how many times that Google shows up in the code for that page. Sometimes it has been above 200. That is above two hundred times that Google is found on that page. If I go through all of those and delete them via the firefox editor, then my CPU goes from about 100% usage to less then 10% usage.

    I am not a javascript programmer, but I have read that if I type in a javascript command into the URL location bar (address bar?) then I should be able to have that javascript to remove all of those Google entries without my having to do that one at a time.

    Here is where I am:
    I can drag and drop some javascript from WordPad into the URL location box like this
    avascript...
    Then type in the J at the start (because it will not run otherwise)
    Thus I have javascript... in the URL location bar.
    Then press the Enter key on my keyboard.
    That javascript is then run on that page.

    It is not much, but it is a start.

    I am looking for some code that does more.

    Maybe someone has written such code already.

    Maybe a lot of people would benefit from having it posted as an answer to this question.

    Thank you.
  • dev7060
    Recognized Expert Contributor
    • Mar 2017
    • 655

    #2
    In Firefox, on Microsoft Windows, I can right-mouse-click on a web page, then press the "Q" key on the keyboard, and then in the "Search HTML" input box type Google, then press the Enter key on the keyboard, then see how many times that Google shows up in the code for that page. Sometimes it has been above 200. That is above two hundred times that Google is found on that page. If I go through all of those and delete them via the firefox editor, then my CPU goes from about 100% usage to less then 10% usage.
    What is the version of Firefox? How much is the RAM and clock speed? What Windows version? Browsers do consume significant resources. The usage also depends upon the installed extensions. When does it show 100% usage?

    I am not a javascript programmer, but I have read that if I type in a javascript command into the URL location bar (address bar?) then I should be able to have that javascript to remove all of those Google entries without my having to do that one at a time.
    Assuming that by "Google entries" you're referring to the externally linked stuff like libraries (or stylesheets?) hosted on Google CDN.

    If that's the case; the files may be essential for the functionality of the site and removal might break the site. How can you run jQuery without loading the library? Some sites even refuse to operate without enabling JS (like Twitter).

    Sites may need the files to track user activity. Info like where the traffic is coming from for Google Analytics and interaction/navigation of the user on the site, etc.

    I can drag and drop some javascript from WordPad into the URL location box like this
    avascript...
    Then type in the J at the start (because it will not run otherwise)
    Thus I have javascript... in the URL location bar.
    Then press the Enter key on my keyboard.
    That javascript is then run on that page.
    I think a better way would be to use a script manager like Greasemonkey or an extension like a content blocker.

    One could add a filter in the content/ad blocker extension to block certain elements. You may refer to the documentation/guide of the extension.

    Comment

    Working...