Pixiv UI Compactor

Hides popular works panel from Pixiv search page, narrows elements and removes unnecessary spaces to make the header ~2 times smaller so you can view the images without scrolling.

  1. // ==UserScript==
  2. // @name Pixiv UI Compactor
  3. // @name:ru Pixiv Компактный интерфейс
  4. // @description Hides popular works panel from Pixiv search page, narrows elements and removes unnecessary spaces to make the header ~2 times smaller so you can view the images without scrolling.
  5. // @description:ru Скрывает промо блок, громоздкие элементы и убирает пробелы на странице поиска по тегам Pixiv, чтобы картинки отображались как можно ближе к хедеру.
  6. // @namespace puic
  7. // @include https://www.pixiv.net/*
  8. // @version 1.07
  9. // @license MIT
  10. // @grant GM_addStyle
  11. // ==/UserScript==
  12.  
  13. // Header spacing
  14. GM_addStyle (`
  15. .expahI{
  16. display: none !important;
  17. }`);
  18.  
  19. // Spacing
  20. GM_addStyle (`
  21. .wJpxo{
  22. display: none !important;
  23. }`);
  24. // Tags belt
  25. GM_addStyle (`
  26. .dztvKv{
  27. display: none !important;
  28. }`);
  29.  
  30. // Popular works
  31. GM_addStyle (`
  32. .dhOsiK {
  33. display: none !important;
  34. }`);
  35. GM_addStyle (`
  36. .dFLqqk {
  37. display: none !important;
  38. }`);
  39.  
  40. // Categories
  41. GM_addStyle (`
  42. .bduUXU {
  43. padding-bottom: 0 !important;
  44. }`);
  45. GM_addStyle (`
  46. .ioZtRi {
  47. height: 30 !important;
  48. }`);
  49. // Search options
  50. GM_addStyle (`
  51. .laRMNP{
  52. margin-top: 0px !important;
  53. margin-bottom: 10px !important;
  54. }`);
  55.  
  56. // Hide sort by popularity button
  57. GM_addStyle (`
  58. .ddAFpR{
  59. display: none !important;
  60. }`);
  61.  
  62. // Main containers
  63. GM_addStyle (`
  64. .buukZm{
  65. padding-top: 0px !important;
  66. padding-bottom: 0px !important;
  67. }`);
  68. // Images thumbnails gap
  69. GM_addStyle (`
  70. .jtpclu{
  71. margin-top: 0px !important;
  72. background-color: rgba(0, 0, 0, 0.0) !important;
  73. border-radius: 12px !important;
  74. }`);
  75. GM_addStyle (`
  76. .bZOnOL{
  77. padding-left: 0px !important;
  78. }`);
  79. GM_addStyle (`
  80. .kghgsn{
  81. font-size: 12px !important;
  82. }`);
  83. GM_addStyle (`
  84. .krFoBL{
  85. gap: 12px 20px !important;
  86. }`);