Google Search Display URL

Display page URLs under the page names (legacy feature).

目前为 2020-03-17 提交的版本,查看 最新版本

  1. /* ==UserStyle==
  2. @name Google Search Display URL
  3. @name:ja Google検索 URLを表示
  4. @description Display page URLs under the page names (legacy feature).
  5. @description:ja 以前のようにページ名の下へURLを表示します。
  6. @namespace https://greasyfork.org/users/137
  7. @version 1.1.1
  8. @license MPL-2.0
  9. @contributionURL https://www.amazon.co.jp/registry/wishlist/E7PJ5C3K7AM2
  10. @compatible Firefox
  11. @compatible Opera
  12. @compatible Chrome
  13. @author 100の人
  14. @homepageURL https://greasyfork.org/scripts/395307
  15. ==/UserStyle== */
  16.  
  17. @namespace url(http://www.w3.org/1999/xhtml);
  18.  
  19. @-moz-document regexp("https?://www\\.google\\.(?:com|(?:com?\\.)?[a-z][a-z])/(?!maps(?:$|.*)).*") {
  20. [data-async-context^="query:"] h2 + div [data-hveid]:not([id]) > div:first-of-type:not([data-hveid]) {
  21. --sub-color: darkgreen;
  22.  
  23. display: grid;
  24. grid-template:
  25. " title title "
  26. " url option"
  27. / auto 1fr;
  28. }
  29.  
  30. [data-async-context^="query:"] h2 + div [data-hveid]:not([id]) cite {
  31. display: none;
  32. }
  33.  
  34. [data-async-context^="query:"] h2 + div [data-hveid]:not([id]) > div:first-of-type > a {
  35. display: contents;
  36. }
  37.  
  38. [data-async-context^="query:"] h2 + div [data-hveid]:not([id]) h3 {
  39. grid-area: title;
  40. white-space: nowrap;
  41. }
  42.  
  43. [data-async-context^="query:"] h2 + div [data-hveid]:not([id]) > div:first-of-type > a::after {
  44. grid-area: url;
  45. content: attr(href);
  46. color: var(--sub-color);
  47. white-space: nowrap;
  48. overflow: hidden;
  49. text-overflow: ellipsis;
  50. }
  51.  
  52. [data-async-context^="query:"] h2 + div [data-hveid]:not([id]) > div:first-of-type > div {
  53. grid-area: option;
  54. position: unset;
  55. }
  56. }