Google Search Display URL

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

当前为 2022-03-20 提交的版本,查看 最新版本

  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.5.0
  8. @license MPL-2.0
  9. @contributionURL https://www.amazon.co.jp/registry/wishlist/E7PJ5C3K7AM2
  10. @compatible Edge
  11. @compatible Firefox 推奨 (Recommended)
  12. @compatible Opera
  13. @compatible Chrome
  14. @author 100の人
  15. @homepageURL https://greasyfork.org/scripts/395307
  16. ==/UserStyle== */
  17.  
  18. /*
  19. 【動作確認用】
  20. サイトリンク付き
  21. https://www.google.com/search?q=Greasy+Fork
  22. 動画再生フォーム
  23. https://www.google.com/search?q=%E5%A5%BD%E3%81%8D!%E9%9B%AA!%E6%9C%AC%E6%B0%97%E3%83%9E%E3%82%B8%E3%83%83%E3%82%AF
  24. 電卓
  25. https://www.google.com/search?q=1-1
  26. 翻訳フォーム
  27. https://www.google.com/search?q=test
  28. 乱数生成フォーム / このページを訳す
  29. https://www.google.com/search?q=random+number
  30. 宅配便の追跡リンク
  31. https://www.google.com/search?q=999999999994
  32. Twitter
  33. https://www.google.com/search?q=Twitter
  34. */
  35.  
  36. @namespace url(http://www.w3.org/1999/xhtml);
  37.  
  38. @-moz-document regexp("https?://www\\.google\\.(?:com|(?:com?\\.)?[a-z][a-z])/(?!maps(?:$|.*)).*") {
  39. .yuRUbf,
  40. [data-async-context^="query:"] div[data-hveid][data-ved]:not([id]):not([data-md]) h3 a, /* 動画再生フォーム */
  41. [data-async-context^="query:"] g-section-with-header g-link a { /* Twitter */
  42. --sub-color: darkgreen;
  43.  
  44. display: grid;
  45. grid-template:
  46. " title title "
  47. " url option"
  48. / auto 1fr;
  49. }
  50.  
  51. [data-async-context^="query:"] div[data-hveid][data-ved]:not([id]):not([data-md]):not([class*="wholepage"]) cite,
  52. [data-async-context^="query:"] g-section-with-header cite { /* Twitter */
  53. display: none;
  54. }
  55.  
  56. .yuRUbf > a {
  57. display: contents;
  58. }
  59.  
  60. .yuRUbf h3,
  61. [data-async-context^="query:"] g-section-with-header g-link h3 {
  62. grid-area: title;
  63. white-space: nowrap;
  64. }
  65.  
  66. .yuRUbf > a::after,
  67. [data-async-context^="query:"] div[data-hveid][data-ved]:not([id]):not([data-md]) h3 a::after, /* 動画再生フォーム */
  68. [data-async-context^="query:"] g-section-with-header g-link a::after { /* Twitter */
  69. grid-area: url;
  70. content: attr(href);
  71. color: var(--sub-color);
  72. white-space: nowrap;
  73. overflow: hidden;
  74. text-overflow: ellipsis;
  75. font-size: 13px; /* Twitter */
  76. }
  77.  
  78. .yuRUbf > div {
  79. grid-area: option;
  80. position: unset;
  81. }
  82. }