7 years ago*

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

badass!

7 years ago
Permalink

Comment has been collapsed.

WOAH! Hell Yeah!!
tytytytytytytytytytytytyty

7 years ago
Permalink

Comment has been collapsed.

Thank you!

7 years ago
Permalink

Comment has been collapsed.

Once again a thing that should be built-in.

+1, thanks a lot!

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

oh this is godsend for those horrible 100mb gifs, thanks!

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

true, I despair everytime when linking gifv ain't possible

7 years ago
Permalink

Comment has been collapsed.

Thank you once again for this awesome script. Steamgifts is loading the Selfie Thread so much faster now, along with dozens of other threads containing attached images.

7 years ago
Permalink

Comment has been collapsed.

Not something I am really in need of but I can see how it can be useful, good job :)

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

I'm nowhere near rich - the only reason my internet is good is cause someone in the household uses it for work and they pay for it. They also require it to be fast of course, I just leech off it :x

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 5 years ago.

7 years ago
Permalink

Comment has been collapsed.

Next version support endless scrolling ;)

7 years ago
Permalink

Comment has been collapsed.

+1 It's sad most of users scripts don't support it.

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

There are some scripts that can do it. Is it possible to make it like them? For example, SG Game Tags supports it in giveaways lists.

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

I don't have much experience with pure javascript, I just made some basic scripts in jQuery long time ago but they were really basic - just few rows... Maybe it could be easier to make it in a framework like that. What do you think? Scripts in frameworks are much more elegant, anyway. :)

Also Extended Steamgifts uses that feature, you can check it too.

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

It's ok when you are used to it. I would like to ask you another question if you don't mind. It's about apps like Tampermonkey.

Is there an easy way how to override some parts of scripts (for example override a variable or add some code) without editing the original file? I mean override it in an external file, for example. Because if I changed it in the original script, updates of the scripts would rewrite it.

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

Aww, that's a pity. Fortunately, I don't need it now. I just wanted to know it in case I need it. Thank you very much for the info.

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

I believe if you asked about it on stackoverflow.com, someone would sure tell you how to make it. It would save you much time.

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

The Extended Steamgifts use i to, have you checked it yet? I just checked all scripts I use and unfortunately, only the SG Game Tags and Extended Steamgifts support it.

I am not sure but for the Extended Steamgifts script it was easier to implement it because it was applied to its own endless scrolling. And you need to know how to apply it to DOM that was generated with another script, right?

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

Can disable cache ;) but anyway here is what i have for type 2

VM4060:3 ERROR: Execution of script 'SG OnDemand Image Loader' failed! Cannot read property 'parentElement' of undefined
endless_type @ VM4060:3
(anonymous) @ VM4060:4
(anonymous) @ VM4060:166
(anonymous) @ VM4047:2
E_c @ VM4047:3
E @ VM4050:56
create @ VM4050:64
z @ VM4050:13
VM4060:3 TypeError: Cannot read property 'parentElement' of undefined
    at stop_loading (eval at E_c (:3:114), <anonymous>:48:19)
    at Window.tms_f4d07d67_0f90_4dde_97c7_42fd35dcbfab (eval at E_c (:3:114), <anonymous>:39:2)
    at <anonymous>:2:297
    at endless_type (eval at E_c (:3:114), <anonymous>:3:1)
    at eval (eval at E_c (:3:114), <anonymous>:4:3)
    at Object.eval (eval at E_c (:3:114), <anonymous>:166:6)
    at <anonymous>:2:297
    at Object.E_c (<anonymous>:3:112)
    at E (eval at exec_fn (:1:108), <anonymous>:56:175)
    at Object.create (eval at exec_fn (:1:108), <anonymous>:64:282)
7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

VM1491:105 Uncaught TypeError: Cannot read property 'className' of undefined
    at eval (eval at E_c (:3:114), <anonymous>:105:33)
    at Array.forEach (native)
    at MutationObserver.eval (eval at E_c (:3:114), <anonymous>:78:13)
(anonymous) @ VM1491:105
(anonymous) @ VM1491:78
else if (endless_type === 2 || endless_type === 3) {
                // Revilheart's script (2) or SGT Frog (3)
                if (mutation.addedNodes.length > 0) {
                    for(j = 0; j < mutation.addedNodes.length; j++) {
                        if (mutation.addedNodes[i].className === "comment") {  *ERROR*
                            elements = mutation.addedNodes[i].getElementsByClassName("comment__toggle-attached");

                            for(i = 0; i < elements.length; i++) {
                                stop_loading(elements[i]);
                            }
                        }
                    }
                }
            }
7 years ago*
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

Seems all good on type 2 so far, no errors and images on subsequent pages not loaded.

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

Type 1 fails after first page no errors.

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

cache disabled and network throttled to 50kb/s and images were several pages in, and type 0 fails after first page as well.

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

Still loading images and no logs in console.

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

100% sure because i even added type logging.

// ========== MUTATION FUNCTIONS ==========
function detect_mutations_threads_giveaways(endless_type) {
    var target = document.getElementsByClassName("sidebar")[0].nextElementSibling;
    var config = {
        "subtree": true,
        "childList": true,
    };

    var observer = new MutationObserver(function(mutations) {
        mutations.forEach(function(mutation) {
            var elements;
            var i;
            var j;

            if (endless_type === 0) {
                // Extended SteamGifts
                console.log("endless type is ", endless_type);
                if (mutation.addedNodes.length === 2 && mutation.addedNodes[0].className === "page__heading" && mutation.addedNodes[1].className === "comments") {
                    console.log("Yep, discussions/giveaways, Extended mutation detected, we found the following attached images elements:");
                    elements = mutation.addedNodes[1].getElementsByClassName("comment__toggle-attached");
                    console.log(elements);
                    console.log("=============================");

                    for(i = 0; i < elements.length; i++) {
                        stop_loading(elements[i]);
                    }
                }
            } else if (endless_type === 1) {
                // SteamGifts++
                console.log("endless type is ", endless_type);
                if (mutation.addedNodes.length === 1 && mutation.addedNodes[0].className === "comment") {
                    console.log("Yep, discussions/giveaways, SteamGifts++ mutation detected, we found the following attached images elements:");
                    elements = mutation.addedNodes[0].getElementsByClassName("comment__toggle-attached");
                    console.log(elements);
                    console.log("=============================");

                    for(i = 0; i < elements.length; i++) {
                        stop_loading(elements[i]);
                    }
                }
            } else if (endless_type === 2 || endless_type === 3) {
                // Revilheart's script (2) or SGT Frog (3)
                console.log("endless type is ", endless_type);
                if (mutation.addedNodes.length > 0) {
                    for(j = 0; j < mutation.addedNodes.length; j++) {
                        if (mutation.addedNodes[j].className === "comment") {
                            elements = mutation.addedNodes[j].getElementsByClassName("comment__toggle-attached");

                            for(i = 0; i < elements.length; i++) {
                                stop_loading(elements[i]);
                            }
                        }
                    }
                }
            }
        });
    });

    observer.observe(target, config);
}
page in view changed to 2
31VM6232:98 endless type is  1
VM6229:36 page in view changed to 3
62VM6232:98 endless type is  1
VM6229:36 page in view changed to 4
VM6232:98 endless type is  1
VM6229:36 page in view changed to 5
30VM6232:98 endless type is  1
youre-not-alone-reboot-28-active-private-ga-warhammer-end-times-hyper-light-drifter/search?page=5:1 Mixed Content: The page at 'https://www.steamgifts.com/discussion/bH3Tq/youre-not-alone-reboot-28-active-private-ga-warhammer-end-times-hyper-light-drifter/search?page=5' was loaded over HTTPS, but requested an insecure image 'http://i.imgur.com/8zrJNcX.gif'. This content should also be served over HTTPS.
youre-not-alone-reboot-28-active-private-ga-warhammer-end-times-hyper-light-drifter/search?page=5:1 Mixed Content: The page at 'https://www.steamgifts.com/discussion/bH3Tq/youre-not-alone-reboot-28-active-private-ga-warhammer-end-times-hyper-light-drifter/search?page=5' was loaded over HTTPS, but requested an insecure image 'http://imagesmtv-a.akamaihd.net/uri/mgid:file:http:shared:mtv.com/news/wp-c…na-broad-city-dance-1422317984.gif?quality=.8&amp;height=197&amp;width=350'. This content should also be served over HTTPS.
7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago*
Permalink

Comment has been collapsed.

SG++ All Read Button causes the mutators to fail otherwise SG++ works fine, on to test extended steamgifts.

Extended Steamgifts still loading images but does log. I can't get consistent results with extended steamgifts sometimes it loads every image on the page sometimes it does not load any.

VM2874:86 Yep, discussions/giveaways, Extended mutation detected, we found the following attached images elements:
VM2874:88 [div.comment__toggle-attached, div.comment__toggle-attached, div.comment__toggle-attached, div.comment__toggle-attached]
VM2874:89 =============================
VM2874:86 Yep, discussions/giveaways, Extended mutation detected, we found the following attached images elements:
VM2874:88 []length: 0__proto__: HTMLCollection
VM2874:89 =============================
7 years ago*
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

MetalTxus' additional giveaway search tool and Alpe's Steamgifts steam rating support endless scroll at giveaways list.

And for the script that enables endless scroll are just that complete overhaul script. SG++, Ext SG, and SGT Frog.
I don't use Easy SG anymore since it stopped working when steamgifts migrated to https.

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

Check

7 years ago
Permalink

Comment has been collapsed.

Looks good, but I don't personally suffer from this issue as my internet connection is quite fast. Still, it would be good for everyone (including those with fast connection) to use this script to reduce the load on the server, the only catch is that the user experience would be somewhat worse compared to what it is currently, as images would show loading instead of show up immediately.

Have you considering preloading images of posts that are visible on the screen? This would mean the behavior would be practically identical to how it is today (for those with fast connection), as the image would most likely be already loaded when clicked, but the browser won't just download all linked images for no reason.

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

How much time of the day do you dedicate to just planning what script you could do next for SG? (Rethorical question.) Please never leave us. (•‿•)

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

Why do you people always have to destroy the images I carefully build inside my head? I imagined you somewhat like in the attached image. Not really. Keep on working your magic. ♥

View attached image.
7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

Don't be so hard on yourself. If you look anything like your profile picture you must be very popular. I mean ... look at those whiskers!

7 years ago
Permalink

Comment has been collapsed.

Slow bump : D

7 years ago
Permalink

Comment has been collapsed.

This saved my internet speed, amazing!

7 years ago
Permalink

Comment has been collapsed.

bump cause it's amazing and needs some extra attention

7 years ago
Permalink

Comment has been collapsed.

NeCrO Key Drop bUmP -- Bandwidth & Load-Time Saver needs attention!! ^^

Game Key ?? =
Eron NF0?B-WZER3-TYY?F 12345678x0
7 years ago
Permalink

Comment has been collapsed.

i'm fairly certain some change somewhere broke this.. now i still get the "insecure image" warnings in the console for every image per discussion instantly and not just upon the loads of the images. (as well as they all seem loaded already)

(tested as the only script running at the time with selfie thread)

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

hmm okay.. sorry then.. i swear i wasn't getting those warnings before at all though for some reason (idk why though), but now i get them everywhere i go even if there aren't images on the page itself because the comment formatting script has all my prior posted image links saved inside it.

i can see the difference now between this script being on and off though so it is still working, my bad.

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

Have a bump! Really useful.

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

👍

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

View attached image.
7 years ago
Permalink

Comment has been collapsed.

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

Linux huh? Can't help you with that..
I'm Windows peasant.. XD

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago*
Permalink

Comment has been collapsed.

Win10 sucks. A lot of my irl friends dislike it
I'm still using Win7 (and Ubuntu Desktop on VM)

7 years ago
Permalink

Comment has been collapsed.

what's the fix for linux chrome users? ;)

zzzzz... sorry sighery, i need to report this bug to revil that was supposed to reply to hawkeye (so was the deleted above this) but it keeps making it a fresh comment instead.

7 years ago
Permalink

Comment has been collapsed.

Deleted

This comment was deleted 3 years ago.

7 years ago
Permalink

Comment has been collapsed.

Great script, small improvement:
changing

// @match        https://www.steamgifts.com/messages

to

// @match        https://www.steamgifts.com/messages*

to handle cases of scripts adding hashes to the url ^^

6 years ago
Permalink

Comment has been collapsed.

Sign in through Steam to add a comment.