Sleazy Fork is available in English.

Gelbooru - Display all site content

Enables "Display All Site Content" by default. Try reloading the page if it doesn't show immediately.

  1. // ==UserScript==
  2. // @name Gelbooru - Display all site content
  3. // @namespace Violentmonkey Scripts
  4. // @match https://gelbooru.com/*
  5. // @grant none
  6. // @version 1.1
  7. // @author shlsdv
  8. // @license MIT
  9. // @description Enables "Display All Site Content" by default. Try reloading the page if it doesn't show immediately.
  10. // ==/UserScript==
  11.  
  12.  
  13.  
  14. function getCookie(name) {
  15. var cookies = document.cookie.split(';');
  16. for (var i = 0; i < cookies.length; i++) {
  17. var cookie = cookies[i].trim();
  18. if (cookie.startsWith(name + '=')) {
  19. return cookie.substring(name.length + 1);
  20. }
  21. }
  22. return null;
  23. }
  24.  
  25. function setCookie(name, value, days) {
  26. var expires = '';
  27. if (days) {
  28. var date = new Date();
  29. date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000));
  30. expires = '; expires=' + date.toUTCString();
  31. }
  32. document.cookie = name + '=' + value + expires + '; path=/';
  33. }
  34.  
  35. if (!getCookie('fringeBenefits')) {
  36. setCookie('fringeBenefits', 'yup');
  37. }