Sleazy Fork is available in English.

載入kemono.party與coomer.party原始圖檔

這個腳本將原始圖檔自動載入,取代你一張一張的用手點。

  1. // ==UserScript==
  2. // @name 載入kemono.party與coomer.party原始圖檔
  3. // @name:zh-TW 載入kemono.party與coomer.party原始圖檔
  4. // @name:ja kemono.partyとcoomer.partyの元画像を読み込む
  5. // @name:en Load Original Images on kemono.party and coomer.party
  6. // @description 這個腳本將原始圖檔自動載入,取代你一張一張的用手點。
  7. // @description:zh-TW 這個腳本將原始圖檔自動載入,取代你一張一張的用手點。
  8. // @description:ja このスクリプトは各画像を手動でクリックする代わりに、元の画像を自動的に読み込みます。
  9. // @description:en This script automatically loads the original images instead of clicking on each one manually.
  10. // @namespace Violentmonkey Scripts
  11. // @icon https://kemono.party/static/favicon.ico
  12. // @match https://kemono.party/*/user/*/post/*
  13. // @match https://kemono.su/*/user/*/post/*
  14. // @match https://coomer.party/*/user/*/post/*
  15. // @version 1.07
  16. // @author Max
  17. // @license MIT
  18. // ==/UserScript==
  19.  
  20. function convertImages() {
  21. var images = document.querySelectorAll("img");
  22.  
  23. if (images.length > 0) {
  24. convertImage(images, 0);
  25. }
  26. }
  27.  
  28. function convertImage(images, index) {
  29. if (index >= images.length) {
  30. return;
  31. }
  32.  
  33. var image = images[index];
  34. var originalUrl = image.src;
  35.  
  36. if (originalUrl.includes("static") || originalUrl.includes("icon") || originalUrl.includes("icons") || originalUrl.includes("banners")) {
  37. index++;
  38. convertImage(images, index);
  39. return;
  40. }
  41.  
  42. var convertedUrl = originalUrl.replace("/thumbnail/", "/").replace("img.", "");
  43. image.src = convertedUrl;
  44.  
  45. image.addEventListener("load", function() {
  46. index++;
  47. convertImage(images, index);
  48. });
  49.  
  50. image.addEventListener("error", function() {
  51. var retryCount = parseInt(image.getAttribute("data-retry-count")) || 0;
  52. if (retryCount < 3) {
  53. image.setAttribute("data-retry-count", retryCount + 1);
  54. convertImage(images, index);
  55. } else {
  56. index++;
  57. convertImage(images, index);
  58. }
  59. });
  60. }
  61.  
  62. convertImages();