What sort of fuckery is Google adds up to now..


MASSIVE restock of EV Batteries at www.batteryhookup.com 5% coupon "POWERWALLS"

hbpowerwall

Administrator
Joined
Oct 7, 2016
Messages
2,080
I DID NOT put ads left and right of the forum, google must have done something on their end. I'm time-poor but I assure you I'll look into turning that shit off..
1655938069043.png
 

Korishan

Moderator
Joined
Jan 7, 2017
Messages
6,943
Maybe there was an update to the forum code backend and there was a revision(?)

Generally speaking, Google, or any other Ad company, can't inject ads on the fly like that. The only way it can be done this way would be if your computer had malware or some such, like a hijacked browser extension that's adding the code in afterwards.

As an fyi, I see no ads at all when I view the page in Incognito mode and disable PiHole. So not sure what's up.
 

Redpacket

Active member
Joined
Feb 28, 2018
Messages
1,434
Not seeing it here either?
Using Chrome + other browser, blockers disabled.....
 

hbpowerwall

Administrator
Joined
Oct 7, 2016
Messages
2,080
Google can as the script is on there end not mine so they can change it at a whim, will keep an eye on it, need the ads so forum is cash positive, but be buggered if I want that shit there :(
 

italianuser

Member
Joined
Feb 25, 2020
Messages
512
I see:
  • a big banner before the header (only came up at first access with a new browser);
  • one in the header next to SLS logo;
  • one in the footer;
  • one under the footer;
  • horizontal ones between post.

But no left/right vertical ones.
 

hbpowerwall

Administrator
Joined
Oct 7, 2016
Messages
2,080
I see:
  • a big banner before the header (only came up at first access with a new browser);
  • one in the header next to SLS logo;
  • one in the footer;
  • one under the footer;
  • horizontal ones between post.

But no left/right vertical ones.
Yep that's what I set up , i hope it's a nice balance between spam and common sense.
 

Korishan

Moderator
Joined
Jan 7, 2017
Messages
6,943
Google can as the script is on there end not mine so they can change it at a whim
This seems very odd to me. They can't move their injection code to a different location where they feel like it. It would break too many web sites if they did this.


Ok, doing some digging of the page code, I think I figured it out. The script that runs for the adsense is an overlay. Meaning that the ads can be placed in different locations, probably based on some kind of algorithm.
The code placement puts it initially in the center of the page. Then after execution, it'll place itself in other locations. I'm guessing this is so that it can place the ads on the page based on resolution, device orientation, and device type. So ads would show up differently (number and location) on a PC browser than it would on an Android browser, or even iOS browser. And then, would still show up differently yet again whether in landscape or portrait mode.

Probably what happened is that Pete's adsense cookies were deleted (or was using a new browser/computer) and it resorted to default locations based on current device/browser being used to view the site.

This is my guess of how it's working. I don't claim to be a web admin, so I'm not entirely sure.
But here's the code snippet:
Code:
<div class="p-body-content">
....
    <center>
        <script async="" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
            <!-- secondlifestorage -->
            <ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-........" data-ad-slot="........"></ins>
        <script>
            (adsbygoogle = window.adsbygoogle || []).push({});
        </script>
    </center>
.....
</div>

At the end you can see "window.adsbygoogle || []).push({})", which would then display the now formatted ads window, which is a type of overlay.
 
Top