At the moment Google serves both old and new versions of its search pages. The search box problem is with the new home pages: eg https://www.google.[co.uk,fr,de,...]. However the new results pages, as of the last few months, are also corrupted.

Instead of spoofing the UA, you can restyle the pages.

The CSS below (NB unwrap the @-moz-document line) makes the new Google search pages appear sensibly. You can add this using an extension such as Stylish or Stylus, or through chrome/userContent.css in your profile directory (see the userContent-example.css shipped with SM in that directory for help).

@namespace url(http://www.w3.org/1999/xhtml);

/* match google.[com, co.uk, .fr, ...][/search?..., ?gws_rd...] */
@-moz-document regexp( "^https?://www\\.google\\.(com|((co\\.)?[a-z]{2}))(/((search\\?|\\?gws_rd=.+))?)?") {

  /* fix search text box */
  #searchform form input[type="text"] {
    /* vertical position of text */
    margin-top: 0;
    /* width of text field */
    width: 49ch;
  }

  /* fix results page */
  /* use more of the window */
  body {
    max-width: 90%;
  }
  /* put the search box in the middle */
  .Pg70bf {
    justify-content: center;
  }
  /* highlight text boxes */
  .sbc input[type="text"] {
    background:   honeydew;
  }
  /* re-add borders */
  body>div>div {
    box-shadow: 0 0px 0px ;
  }
  /* spread footer nav out */
  footer>div:first-child>div>div {
    display: flex;
    justify-content: center;
  }
}


--
London
UK
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to