refactor: remove ad scripts from views

Cleaned up multiple view files by removing Google AdSense script inclusions.
This commit is contained in:
Rico van Zelst
2025-02-26 22:25:14 +01:00
parent 76d468d1da
commit 45cb08c4d9
9 changed files with 2 additions and 93 deletions

View File

@@ -5,11 +5,6 @@
'Explore game assets on Heimerdinger.LoL. Find detailed information on all icons and emotes
available in League of Legends!')
@push('top_scripts')
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4505764048662657"
crossorigin="anonymous"></script>
@endpush
@section('content')
<h1
@@ -41,9 +36,3 @@
@endsection
@push('bottom_scripts')
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
@endpush

View File

@@ -7,8 +7,6 @@
@push('top_scripts')
@vite('resources/js/lane-filter.js')
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4505764048662657"
crossorigin="anonymous"></script>
@endpush
@section('content')
@@ -17,7 +15,4 @@
@push('bottom_scripts')
@include('popper::assets')
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
@endpush

View File

@@ -4,17 +4,6 @@
@section('description',
'Explore all LoL Emotes on Heimerdinger.LoL. Find detailed information on popular emotes such as
Dab Pengu, Bee Mad, Little Camper, Super Shy, PENGUMODE and more!')
@push('top_scripts')
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4505764048662657"
crossorigin="anonymous"></script>
@endpush
@section('content')
<x-emotes.list_all :emotes="$emotes" />
@endsection
@push('bottom_scripts')
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
@endpush

View File

@@ -5,11 +5,6 @@
'Explore League of Legends champions, skins, and game assets on Heimerdinger.
Your ultimate source for in-depth information on LoL gaming. Dive in now!')
@push('top_scripts')
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4505764048662657"
crossorigin="anonymous"></script>
@endpush
@section('content')
<x-home.features />
@@ -18,9 +13,3 @@
@endif
<x-home.recent_skins :latestSkins="$latestSkins" />
@endsection
@push('bottom_scripts')
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
@endpush

View File

@@ -5,17 +5,6 @@
'Explore all LoL icons on Heimerdinger.LoL. Find detailed information on popular summoner icons
such as Qiyana Champie 2, Omen of the Cursed Revenant, Lil\' Sprout, Dominion Retirement, Winterblessed Hwei and more!')
@push('top_scripts')
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4505764048662657"
crossorigin="anonymous"></script>
@endpush
@section('content')
<x-icons.list_all :icons="$icons" />
@endsection
@push('bottom_scripts')
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
@endpush

View File

@@ -3,16 +3,6 @@
@section('title', $icon->title . ' • Heimerdinger')
@section('description', 'Heimerdinger.LoL: ' . $icon->title . ' details showing all the information about the icon
released in ' . $icon->release_year . '. ' . substr($icon->description, 0, 64) . '...')
@push('top_scripts')
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4505764048662657"
crossorigin="anonymous"></script>
@endpush
@section('content')
<x-icons.view_grid :icon="$icon" />
@endsection
@push('bottom_scripts')
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
@endpush

View File

@@ -14,11 +14,6 @@
<meta name="googlebot" content="index, follow">
@endpush
@push('top_scripts')
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4505764048662657"
crossorigin="anonymous"></script>
@endpush
@section('content')
<a href="{{ route('posts.index') }}"
class="block mt-8 text-sm font-medium text-center text-orange-400 uppercase hover:underline">Back
@@ -40,20 +35,15 @@
<h2 class="text-sm italic text-center text-orange-400 not-prose" itemprop="description">
{{ $post->description }}
</h2>
<x-ads.in-article />
<p>
{{ $post->contents }}
</p>
<x-ads.in-article />
<p class="mt-3 text-sm text-center">
Tagged with: <span itemprop="keywords" class="italic">
{{ isset($post->tags) ? implode(', ', $post->tags) : 'League of Legends' }}</span>
</p>
</div>
</article>
@endsection
@push('bottom_scripts')
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
@endpush

View File

@@ -5,18 +5,7 @@
'Explore the current LoL Sale on Heimerdinger.LoL. Find detailed information on what champions
and skins are currently on sale and grab a good deal!')
@push('top_scripts')
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4505764048662657"
crossorigin="anonymous"></script>
@endpush
@section('content')
<x-sales.current_sales :sales="$sales" />
<x-buymeacoffee.floating />
@endsection
@push('bottom_scripts')
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
@endpush

View File

@@ -5,17 +5,6 @@
'Explore all champion skins on Heimerdinger.LoL. Find detailed information on popular skins
such as Dark Cosmic Jhin, HEARTSTEEL Ezreal, PROJECT: Vayne and more!')
@push('top_scripts')
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4505764048662657"
crossorigin="anonymous"></script>
@endpush
@section('content')
<x-skins.paginatedlist :skins="$skins" :rarity-color="$rarityColor" />
@endsection
@push('bottom_scripts')
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
@endpush