Google Search Display URL

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

目前为 2020-01-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.0.2
  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:"] [data-hveid]:not([id]):not([class]) > div > div:first-of-type {
  21. --sub-color: darkgreen;
  22.  
  23. display: grid;
  24. grid-template:
  25. " icon title title "
  26. " dummy url option"
  27. / min-content auto 1fr;
  28. }
  29.  
  30. [data-async-context^="query:"] [data-hveid]:not([id]):not([class]) cite,
  31. [data-async-context^="query:"] [data-hveid]:not([id]):not([class]) a + div > div:first-of-type {
  32. display: none;
  33. }
  34.  
  35. [data-async-context^="query:"] [data-hveid]:not([id]):not([class]) > div > div:first-of-type > a {
  36. display: contents;
  37. }
  38.  
  39. [data-async-context^="query:"] [data-hveid]:not([id]):not([class]) > div > div:first-of-type > a > div {
  40. grid-area: icon;
  41. align-self: center;
  42. }
  43.  
  44. [data-async-context^="query:"] [data-hveid]:not([id]):not([class]) > div > div:first-of-type > a::after {
  45. grid-area: url;
  46. content: attr(href);
  47. color: var(--sub-color);
  48. white-space: nowrap;
  49. overflow: hidden;
  50. text-overflow: ellipsis;
  51. }
  52.  
  53. [data-async-context^="query:"] [data-hveid]:not([id]):not([class]) h3 {
  54. grid-area: title;
  55. white-space: nowrap;
  56. }
  57.  
  58. [data-async-context^="query:"] [data-hveid]:not([id]):not([class]) a:not([role="button"]) + div {
  59. grid-area: option;
  60. position: unset;
  61. white-space: nowrap;
  62. }
  63.  
  64. [data-async-context^="query:"] [data-hveid]:not([id]):not([class]) .action-menu > a {
  65. margin-right: 0.5em;
  66. }
  67.  
  68. [data-async-context^="query:"] [data-hveid]:not([id]):not([class]) .action-menu > a > span {
  69. border-top-color: var(--sub-color);
  70. border-bottom-color: var(--sub-color);
  71. }
  72. }