Git Product home page Git Product logo

old-google's People

Contributors

toydotgame avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

old-google's Issues

Broken Doodle results page

Yeah.


The doodle code seems to have slowly been removed from the search results page. It should be run here, as it doesn't affect isch results pages, just regular ones.

Specifically, document.querySelector(".jfN4p") (searchLogo[0]) is null on a doodle day. The div returned by querySelector(".logo.Ib7Efc") contains an image two levels down which can be modified this way:

document.querySelector(".logo.Ib7Efc").children[0].children[0].src = "https://upload.wikimedia.org/wikipedia/commons/3/3e/Google_2011_logo.png";

On a Doodle day, the first two (only the first!) images with class YQ4gaf (which is also used for a lot of images in the actual results), can be removed:

document.querySelector(".YQ4gaf").remove(); 
document.querySelector(".YQ4gaf").remove(); 

This classname requires extreme care as it used to cause issues that were solved by removing the whole previous solution to this issue in commit 03388b6.

Support more Google search engines

  • Google Videos (formerly videos.google.com, now located at /videohp) still exists for some reason. It appears to look a lot like /imghp does, so I could probably re-use code from that. Unlike Google Images, the search page is a regular Google search and not the special query-stringed Images search page.
  • Google Patents
  • Google Scholar (has unique logo)
  • Google Books (similar to Images hompage somewhat)

There are a few more atypical layout pages which might honestly be easier to update:

Google Doodle search header backgrounds get replaced instead of the actual Google logo

Behaviour

What the header looks like normally:

image

What Old Google does to it:

image

What it should look like:

image

Cause

The code run on the /search page is as follows:

var img = document.getElementsByTagName("img")[0];
img.src = replacementurl;

Simply, the header background is the first <img> element on the page (index 0), whilst on non-Google-Doodle days, the Google logo is at index 0.

Old-style search layout

  • Google, Google Images, and Google Video could all have their search boxes on homepages and results pages be made a bit squarer, and the padding between results could probably be condensed a bit.
  • Green website link text would also be nice.
  • "People also ask" can be removed thanks.
  • It'd probably be quite hard to reorganise the little thumbnail thing above the result title, but padding could be slimmed and a regex replacement of / › /\//g could be done to transform URLs to a more normal format.

Current logo gets loaded in briefly

When I go to google.com, I can for a split second see the current logo, before it is then replaced by the classic logo. Is it now possible to reorder the priority so the classic logo takes prescience, or to block the current logo or something?

Maybe introduce a way to get legacy UI

So I found out just by switching the UserAgent (to for example an older version of Internet explorer) you can still get old Google UI:s

Is there any chance that this extension could have a UserAgent switcher built in or at least support for changing the Google logo for these old UI versions?

Google Doodles not overwritten on the homepage

Behaviour

What happens:

image

What should happen:

image

Cause

Google Doodle logos on the homepage are mostly <canvas>es and <div>s, I believe. Old Google doesn't know what's going on because it can't find it's <img> to replace.

Issues with Google Image search

Description

With Old Google enabled:

image
image

Without Old Google enabled: (Private window)

image
For some reason, Old Google likes to remove the first "similar image(s)" thumbnail on each results page. This is strange, because on Google Doodle days, the Doodle banner is removed and the Google logo is replaced with the old one (like it should) – so those two images should be all that were touched.

Fixing It

For now, elements with the alt="Image result" and alt=" from <domain>" tag can be blacklisted from being touched, I guess. Expect this fix in a v1.3 update at one point.

I will have to re-consider how the right images are picked, both for simplicity and optimisation's sake. This addon is already boilerplate enough.

`&udm=14` option

Add an option to automatically redirect to Google's "web" search page for general searches via the udm GET parameter.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.