Sleazy Fork is available in English.

1337x - Combined Enhancements 2025 (v11) - Configurable

Adds a column with torrent and magnet links, extends titles, adds images, full width site with configurable settings

< Feedback on 1337x - Combined Enhancements 2025 (v11) - Configurable

Değerlendirme: İyi - script çalışıyor

§
Gönderildi: 26.07.2024

How do I edit settings for this? Or disable a feature? I like everything except showing images on the search results page. It causes the rows to become too large and limit how quickly I can scan/scroll/peruse through my search results.

§
Gönderildi: 26.07.2024

How do I edit settings for this? Or disable a feature? I like everything except showing images on the search results page. It causes the rows to become too large and limit how quickly I can scan/scroll/peruse through my search results.

Well I can update the script. Which features do you want configurable?

I can push an update for an on/off of the thumbnails if that's what you're asking

Deleted user 436536
§
Gönderildi: 26.07.2024

How do I edit settings for this? Or disable a feature? I like everything except showing images on the search results page. It causes the rows to become too large and limit how quickly I can scan/scroll/peruse through my search results.

Well I can update the script. Which features do you want configurable?

I can push an update for an on/off of the thumbnails if that's what you're asking

Yes, please. For now, that is all I need. Thank you. I had just deleted that section of the script, but it would bent if you adde much more elegad a configurable setting. I really appreciate it!!

§
Gönderildi: 26.07.2024
Düzenlendi: 26.07.2024

How do I edit settings for this? Or disable a feature? I like everything except showing images on the search results page. It causes the rows to become too large and limit how quickly I can scan/scroll/peruse through my search results.

Well I can update the script. Which features do you want configurable?

I can push an update for an on/off of the thumbnails if that's what you're asking

Yes, please. For now, that is all I need. Thank you. I had just deleted that section of the script, but it would bent if you adde much more elegad a configurable setting. I really appreciate it!!

Can you test this one?
https://gist.github.com/tyhallcsu/d83047e446854042b16298224b3509d7

§
Gönderildi: 26.07.2024

I'm getting rate-limited at the moment. I may need to change the script to not visible/hide setting but instead where it does or doesn't scrape for the images. Report back and let me know. Ill fix it.

Deleted user 436536
§
Gönderildi: 26.07.2024

I'm getting rate-limited at the moment. I may need to change the script to not visible/hide setting but instead where it does or doesn't scrape for the images. Report back and let me know. Ill fix it.

Yes, I get rate-limited as well. I don't know if it helps your editing, but when I delete lines 244-375, the script no longer loads the images and does not rate limit either.

§
Gönderildi: 28.07.2024

I'm getting rate-limited at the moment. I may need to change the script to not visible/hide setting but instead where it does or doesn't scrape for the images. Report back and let me know. Ill fix it.

Yes, I get rate-limited as well. I don't know if it helps your editing, but when I delete lines 244-375, the script no longer loads the images and does not rate limit either.

that's actually helpful -- thank you; I will push a new update eventually when I have more free time to do so

§
Gönderildi: 08.08.2024
Düzenlendi: 08.08.2024

https://gist.github.com/tyhallcsu/aac9769038b639d11cae000ff1dab55d


Test this out, I think I fixed the rate-limiting issues if you can check

§
Gönderildi: 08.08.2024

https://gist.github.com/tyhallcsu/aac9769038b639d11cae000ff1dab55d




Test this out, I think I fixed the rate-limiting issues if you can check

// Key improvements in the updated script:

  1. Rate-limited fetching:

    • Implemented in fetchContent() function
    • Includes retry logic with exponential backoff for 429 (Too Many Requests) responses
  2. Image URL optimization:

    • optimizeImageUrl() function consolidates all URL transformations
  3. Lazy loading of images:

    • lazyLoadImage() function uses IntersectionObserver for efficient loading
  4. Configuration UI:

    • Added a toggle for showing/hiding thumbnails
    • Uses GM_getValue and GM_setValue for persistent settings
  5. Improved error handling and logging

// Suggestions for further optimization:

  1. Implement caching: const cache = new Map();

function fetchWithCache(url, callback) { if (cache.has(url)) { callback(cache.get(url)); return; }

 fetchContent(url, (result) => {
   cache.set(url, result);
   callback(result);
 });

}

  1. Debounce image loading: function debounce(func, wait) { let timeout; return function(...args) { clearTimeout(timeout); timeout = setTimeout(() => func.apply(this, args), wait); }; }

const debouncedLazyLoad = debounce(lazyLoadImage, 100);

  1. Use requestIdleCallback for non-critical operations: if ('requestIdleCallback' in window) { requestIdleCallback(() => { // Perform non-critical operations here }); } else { setTimeout(() => { // Fallback for browsers that don't support requestIdleCallback }, 1); }

  2. Consider using Web Workers for heavy computations: if (window.Worker) { const worker = new Worker('worker.js'); worker.postMessage({/* data */}); worker.onmessage = function(e) { console.log('Worker said: ', e.data); }; }

  3. Implement progressive loading for large image sets: function loadImagesProgressively(images, batchSize = 5, delay = 200) { let index = 0; function loadBatch() { const batch = images.slice(index, index + batchSize); batch.forEach(img => lazyLoadImage(img, img.dataset.src)); index += batchSize; if (index < images.length) { setTimeout(loadBatch, delay); } } loadBatch(); }

§
Gönderildi: 08.08.2024

It's working better. It took me a second to figure out that the HD thumbnail was the toggle for the pics; I had to take a peek at the code. I do not get rate-limited right away. If I browse around too quickly, it will kick in again. It seemed slightly more prone to doing so than when I'm not using the script, but I could not confirm that definitively. I am not sure if it's true, but I think once you rate-limited the first time, it makes it quicker and more sensitive to trigger again, so I'd have to play around with it for a while.
Clicking on the magnet links from the search page does nothing on my end, though.
While you were working on the script I played around with some others. I could not get their magnet links to work either except for this one. When I use this script it does open the magnet link: https://greasyfork.org/en/scripts/420754

§
Gönderildi: 08.08.2024

It's working better. It took me a second to figure out that the HD thumbnail was the toggle for the pics; I had to take a peek at the code. I do not get rate-limited right away. If I browse around too quickly, it will kick in again. It seemed slightly more prone to doing so than when I'm not using the script, but I could not confirm that definitively. I am not sure if it's true, but I think once you rate-limited the first time, it makes it quicker and more sensitive to trigger again, so I'd have to play around with it for a while.
Clicking on the magnet links from the search page does nothing on my end, though.
While you were working on the script I played around with some others. I could not get their magnet links to work either except for this one. When I use this script it does open the magnet link: https://greasyfork.org/en/scripts/420754





If you can post an updated script, where you see things working or not, I am 100% open to collaborating on this with you.

§
Gönderildi: 31.08.2024

It's working better. It took me a second to figure out that the HD thumbnail was the toggle for the pics; I had to take a peek at the code. I do not get rate-limited right away. If I browse around too quickly, it will kick in again. It seemed slightly more prone to doing so than when I'm not using the script, but I could not confirm that definitively. I am not sure if it's true, but I think once you rate-limited the first time, it makes it quicker and more sensitive to trigger again, so I'd have to play around with it for a while.
Clicking on the magnet links from the search page does nothing on my end, though.
While you were working on the script I played around with some others. I could not get their magnet links to work either except for this one. When I use this script it does open the magnet link: https://greasyfork.org/en/scripts/420754

I posted an update of this script with front-end configuration settings. You're going to love it :D

Cevap paylaş

Yanıt göndermek için oturum açın.