imgur fullscreem/bigger images

Remove columns and make the images in imgur larger so it covers most of the screen.

  1. // ==UserScript==
  2. // @name imgur fullscreem/bigger images
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.2
  5. // @description Remove columns and make the images in imgur larger so it covers most of the screen.
  6. // @author Vorm--
  7. // @match *://imgur.com/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=imgur.com
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. function addGlobalStyle(css) {
  13. var head, style;
  14. head = document.getElementsByTagName('head')[0];
  15. if (!head) { return; }
  16. style = document.createElement('style');
  17. style.type = 'text/css';
  18. style.innerHTML = css;
  19. head.appendChild(style);
  20. }
  21.  
  22.  
  23. addGlobalStyle(`
  24. .Gallery-Sidebar {
  25. display: none;
  26. }
  27.  
  28. .Gallery {
  29. width: 99% !important;
  30. max-width: 100% !important;
  31. }
  32.  
  33. .Gallery-contentWrapper {
  34. padding-left: 0 !important;
  35. margin-left: 10px !important;
  36. }
  37.  
  38. .badges-wrapper {
  39. padding: 10px;
  40. }
  41.  
  42. .post-container {
  43. width: 100% !important;
  44. }
  45.  
  46. #inside {
  47. width: 90% !important;
  48. }
  49.  
  50. .left {
  51. float: none !important;
  52. }
  53.  
  54. .post-header {
  55. width: 100% !important;
  56. }
  57.  
  58. .post-header.fixed {
  59. width: 90% !important;
  60. }
  61.  
  62. `);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址