From 45cb08c4d9ac9d2f319045a85e32682f95ab5a38 Mon Sep 17 00:00:00 2001 From: Rico van Zelst Date: Wed, 26 Feb 2025 22:25:14 +0100 Subject: [PATCH] refactor: remove ad scripts from views Cleaned up multiple view files by removing Google AdSense script inclusions. --- resources/views/assets/index.blade.php | 11 ----------- resources/views/champions/index.blade.php | 5 ----- resources/views/emotes/index.blade.php | 11 ----------- resources/views/home.blade.php | 11 ----------- resources/views/icons/index.blade.php | 11 ----------- resources/views/icons/show.blade.php | 10 ---------- resources/views/posts/show.blade.php | 14 ++------------ resources/views/sales/index.blade.php | 11 ----------- resources/views/skins/index.blade.php | 11 ----------- 9 files changed, 2 insertions(+), 93 deletions(-) diff --git a/resources/views/assets/index.blade.php b/resources/views/assets/index.blade.php index 81ebdc0..84fb7f3 100644 --- a/resources/views/assets/index.blade.php +++ b/resources/views/assets/index.blade.php @@ -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') - - @endpush - @section('content')

- (adsbygoogle = window.adsbygoogle || []).push({}); - -@endpush diff --git a/resources/views/champions/index.blade.php b/resources/views/champions/index.blade.php index 717705a..7025e16 100644 --- a/resources/views/champions/index.blade.php +++ b/resources/views/champions/index.blade.php @@ -7,8 +7,6 @@ @push('top_scripts') @vite('resources/js/lane-filter.js') - @endpush @section('content') @@ -17,7 +15,4 @@ @push('bottom_scripts') @include('popper::assets') - @endpush diff --git a/resources/views/emotes/index.blade.php b/resources/views/emotes/index.blade.php index 611d7a8..bbca850 100644 --- a/resources/views/emotes/index.blade.php +++ b/resources/views/emotes/index.blade.php @@ -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') - - @endpush @section('content') @endsection - -@push('bottom_scripts') - -@endpush diff --git a/resources/views/home.blade.php b/resources/views/home.blade.php index b832666..32126eb 100644 --- a/resources/views/home.blade.php +++ b/resources/views/home.blade.php @@ -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') - - @endpush - @section('content') @@ -18,9 +13,3 @@ @endif @endsection - -@push('bottom_scripts') - -@endpush diff --git a/resources/views/icons/index.blade.php b/resources/views/icons/index.blade.php index c749d03..9e06083 100644 --- a/resources/views/icons/index.blade.php +++ b/resources/views/icons/index.blade.php @@ -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') - - @endpush - @section('content') @endsection - -@push('bottom_scripts') - -@endpush diff --git a/resources/views/icons/show.blade.php b/resources/views/icons/show.blade.php index c1fff39..9b7985f 100644 --- a/resources/views/icons/show.blade.php +++ b/resources/views/icons/show.blade.php @@ -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') - - @endpush @section('content') @endsection - -@push('bottom_scripts') - -@endpush diff --git a/resources/views/posts/show.blade.php b/resources/views/posts/show.blade.php index 4242798..39e4731 100644 --- a/resources/views/posts/show.blade.php +++ b/resources/views/posts/show.blade.php @@ -14,11 +14,6 @@ @endpush -@push('top_scripts') - -@endpush - @section('content') Back @@ -40,20 +35,15 @@

“{{ $post->description }}”

+

{{ $post->contents }}

+

Tagged with: {{ isset($post->tags) ? implode(', ', $post->tags) : 'League of Legends' }}

- @endsection - -@push('bottom_scripts') - -@endpush diff --git a/resources/views/sales/index.blade.php b/resources/views/sales/index.blade.php index 8dab9d6..605d86f 100644 --- a/resources/views/sales/index.blade.php +++ b/resources/views/sales/index.blade.php @@ -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') - - @endpush - @section('content') @endsection - -@push('bottom_scripts') - -@endpush \ No newline at end of file diff --git a/resources/views/skins/index.blade.php b/resources/views/skins/index.blade.php index 471737d..e05f598 100644 --- a/resources/views/skins/index.blade.php +++ b/resources/views/skins/index.blade.php @@ -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') - - @endpush - @section('content') @endsection - -@push('bottom_scripts') - -@endpush