Forums / Maintenance / Report Problems

27,882 total conversations in 1,745 threads

+ New Thread


Found a fix for the gallery loading issues

Last posted Feb 20, 2019 at 03:24PM EST. Added Feb 08, 2019 at 07:54PM EST
9 posts from 4 users

I just had a look at the chrome console while scrolling a bugged gallery and apparently there are a bunch of errors about undefined "googletag" and "deployads" stuff.

So I wrote a short userscript that loads the above scripts if they are missing and this fixed the loading/scrolling problems.


Try it by downloading the Tampermonkey extension for your Chrome/Firefox and use the following link to install the script:

https://my.mixtape.moe/enrfhj.user.js

The link should trigger a direct installation if you have Tampermonkey. If that doesn't work you can add the script manually with this other link:

https://pastebin.com/raw/jQ1DMpPS


There are other threads on the same issue but I figured that creating a new one would make this trivial fix more visible.
I suppose the staff may already be aware of these errors and I hope they fix them soon.

If you have an adblocker some images may still not load after you click on them because the above ads script will be blocked, thus leaving some images in a bugged state.

As a workaround for this you can additionally allow that script with the following custom filter for AdBlock/uBlock Origin:

@@||tags-cdn.deployads.com/a/knowyourmeme.com.js$script,domain=knowyourmeme.com


This doesn't mean that all we had to do was disable our adblock, because the galleries are still bugged even without it.

Last edited Feb 08, 2019 at 09:06PM EST

If you don't want to add the userscript extension, you can alternatively open the console when you meet a bugged gallery and paste the content of the script yourself.

Here is a demo of a gallery loading normally again:

You can open the console with F12 → Console and see the content of the script in the pastebin link.

This will at least unlock the gallery out of its bugged state, but it's kinda ridiculous that if these ads-related scripts are missing the whole thing gets bugged.
Blocking the googletag script on other websites does not break anything.

I hope they fix this annoying issue soon, keep the ads stuff away from the main functionality of the website.

Last edited Feb 09, 2019 at 12:31PM EST

Ok forget about loading the missing scripts. You can define the missing objects yourself and leave the needed functions empty.

The following two lines will do the job:

window.googletag = {cmd: []};
window.deployads = {push: function(){}};


If you want to use the tampermonkey script, replace all the code with just those two lines.

Otherwise just paste them into the console whenever you encounter a bugged gallery.

Last edited Feb 09, 2019 at 01:25PM EST

It seems that this issue is happening because some entries are blacklisted from ads for their NSFW nature or whatever.

The code that initializes the ads stuff is supposed to always run, even if you have an adblocker, because in that case it will leave the relative functions empty and things will just go on without ads.

In this case however the initialization is skipped and you're left with undefined stuff that will break the whole site's script.


Looking at the source (the minified desktop js file from s.kym-cdn.com/assets), I think this exact piece of code is the issue:

That void 0 should be replaced with some code that initializes the ads objects empty like in my previous post.


P.S. I may delete a couple of my previous posts because they are not relevant anymore.

Last edited Feb 09, 2019 at 04:49PM EST

Sanakan_ht wrote:

Have the admins responded to this? Just want to know

I haven't seen any admin or moderator respoding to this. Also I didn't message anyone about this because I figured that making a thread about the issue in this section of the forum was enough.

Skeletor-sm

This thread is closed to new posts.

Old threads normally auto-close after 30 days of inactivity.

Why don't you start a new thread instead?

Namaste! You must login or signup first!