[blogger] شرح تركيب اضافة مانع الإعلانات بشكل جذاب سلس ومتجاوب
الأحد 7 يونيو - 1:51
السلام عليكم ورحمة الله تعالى وبركاته
مرحبا بكم أعضاء و الزوار منتدى تقني ,في هذا الموضوع سوف نطرح اضافة مانع الإعلانات بشكل جديد
بالنسبة لناشري adsense، يمثل مانع الإعلانات تحديًا. فهو يؤدي إلى انخفاض الدخل بشكل كبير وهو أمر محزن للغاية ولكن هذه حقيقة يمكننا التعايش معها الآن.
وظيفة مانع الإعلانات
Anti AdBlock هي سلسلة من البرامج النصية التي تجبر مظهر الموقع على عرض إشعارات معينة إذا قام مستخدم المتصفح بتنشيط AdBlock. عادة ما يغطي برنامج مكافحة adblock محتوى الموقع بالكامل (overlay)، والذي يحتوي على إشعار لمستخدمي المتصفح لتعطيل مانع الإعلانات الذي يستخدمونه. الغرض من إنشاء مانع الإعلانات هو أن تستمر الإعلانات في الظهور، من أجل دعم بقاء واستمرار موقع يعتمد على إيرادات الإعلانات
شرح طريقة التركيب
مرحبا بكم أعضاء و الزوار منتدى تقني ,في هذا الموضوع سوف نطرح اضافة مانع الإعلانات بشكل جديد
بالنسبة لناشري adsense، يمثل مانع الإعلانات تحديًا. فهو يؤدي إلى انخفاض الدخل بشكل كبير وهو أمر محزن للغاية ولكن هذه حقيقة يمكننا التعايش معها الآن.
وظيفة مانع الإعلانات
Anti AdBlock هي سلسلة من البرامج النصية التي تجبر مظهر الموقع على عرض إشعارات معينة إذا قام مستخدم المتصفح بتنشيط AdBlock. عادة ما يغطي برنامج مكافحة adblock محتوى الموقع بالكامل (overlay)، والذي يحتوي على إشعار لمستخدمي المتصفح لتعطيل مانع الإعلانات الذي يستخدمونه. الغرض من إنشاء مانع الإعلانات هو أن تستمر الإعلانات في الظهور، من أجل دعم بقاء واستمرار موقع يعتمد على إيرادات الإعلانات
شرح طريقة التركيب
- 1. سجل الدخول إلى مدونتك
- 2. المظهر >> تعديل HTML
- 3. ابحث عن ]]> ثم ضع الكود فوقه
- الكود:
/*!
* Anti-adblock v2.1.0
* Copyright 2019 zkreations
* Daniel Abel M. (fb.com/danieI.abel)
* Licensed under MIT (github.com/zkreations/plugins/blob/master/LICENSE)
* Blogger Version
*/
@font-face {
font-family: "wgd";
src: url(https://cdn.jsdelivr.net/gh/da2l/host@1/dist/fonts/wgd.woff) format("woff");
font-weight: normal;
font-style: normal;
}
[class^="wgd-"]:before,
[class*=" wgd-"]:before {
font-family: "wgd" !important;
font-style: normal !important;
font-weight: normal !important;
font-variant: normal !important;
text-transform: none !important;
speak: none;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.wgd-usd:before {
content: "\61";
}
.wgd-eur:before {
content: "\62";
}
.wgd-btc:before {
content: "\63";
}
.wgd-times:before {
content: "\64";
}
@keyframes square {
0% {
transform: translateY(0) scale(1.5) rotate(0);
opacity: 1
}
100% {
transform: translateY(-600px) scale(1) rotate(-200deg);
opacity: 0
}
}
.WgD-particles i {
font-size: 4em;
font-weight: 400;
position: absolute;
bottom: -100px;
animation: square 10s infinite;
}
.WgD-particles i:nth-child(6),
.WgD-particles i:nth-child(4),
.WgD-particles i:nth-child(11),
.WgD-particles i:nth-child(8) {
font-size: 3em;
}
.WgD-particles i:nth-child(2),
.WgD-particles i:nth-child(3),
.WgD-particles i:nth-child(10) {
font-size: 2em;
}
.WgD-particles i {
animation-duration: 16s;
}
.WgD-particles i:nth-child(1) {
left: 15%;
}
.WgD-particles i:nth-child(2) {
left: 24%;
animation-duration: 8s
}
.WgD-particles i:nth-child(3) {
left: 50%;
animation-delay: 5s
}
.WgD-particles i:nth-child(4) {
left: 40%;
animation-delay: 7s;
animation-duration: 15s
}
.WgD-particles i:nth-child(5) {
left: 36%;
animation-delay: 6s
}
.WgD-particles i:nth-child(6) {
left: 44%;
animation-delay: 10s;
animation-duration: 20s
}
.WgD-particles i:nth-child(7) {
left: 58%;
animation-delay: 2s;
animation-duration: 18s
}
.WgD-particles i:nth-child(8) {
left: 45%;
animation-duration: 14s
}
.WgD-particles i:nth-child(9) {
left: 66%;
animation-delay: 3s;
animation-duration: 12s
}
.WgD-particles i:nth-child(10) {
left: 74%;
animation-duration: 25s
}
.WgD-particles i:nth-child(11) {
left: 80%;
animation-delay: 4s
}
body.ab-is-detected {
overflow: hidden !important;
}
[id=WgD] {
display: none;
}
[id=WgD].is-detected {
display: block;
}
@keyframes wgdfade {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
#WgD {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
font-size: 14px;
animation: wgdfade .3s;
z-index: 99999;
}
.WgD-position {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 900;
}
.WgD-title {
margin: 0;
margin-bottom: .5em;
font-size: 1.6em;
font-weight: 800;
font-family: 'bein-normal', sans-serif;
color: #333;
}
.WgD-text {
margin: 0;
font-weight: 400;
font-family: 'bein-normal', sans-serif;
color:#6d707a;
}
.WgD-reload {
text-decoration: none;
display: inline-block;
margin-top: 2em;
font-weight: 500;
transition: transform .3s;
font-family: 'bein-normal', sans-serif;
}
.WgD-reload:hover {
transform: scale(1.05);
}
.WgD-close {
position: absolute;
top: 0;
right: 0;
text-decoration: none;
font-size: 20px;
color: #999;
padding: 1rem;
line-height: 1;
display: block;
}
.WgD-container img {
max-width: 100%;
margin-bottom: 1em;
object-fit: cover;
}
/* Base
-----------------------------------------*/
[id=WgD] {
font-family: 'Roboto', sans-serif; /*fuente*/
background: #FF416C; /*fondo por defecto */
background: linear-gradient(to right, #FF4B2B, #FF416C);
}
.WgD-particles i {
color: rgba(0, 0, 0, 0.2); /*color particulas*/
}
/* Animacion (daneden.github.io/animate.css/)
-----------------------------------------*/
.WgD-container {
animation: bounceIn 1s; /*nombre y duracion*/
}
/* Cuerpo
-----------------------------------------*/
.WgD-container {
padding: 3.2em; /*naruto(relleno)*/
max-width: 450px; /*ancho maximo*/
background-color: #fff; /*color*/
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.1);
text-align: center;
line-height: 1.5;
border-radius: 10px;
color: #37474F;
}
.WgD-title {
font-size: 1.6em;
}
.WgD-text {
font-size: 1.2em;
}
/* Boton Recargar
-----------------------------------------*/
a.WgD-reload {
color: #fff !important;
}
.WgD-reload {
box-shadow: rgba(0, 0, 0, .12) 0 3px 13px 1px;
color: #fff;
padding: 1em 1.5em;
background: #F44336; /*color*/
border-radius: 3px;
}
.WgD-reload:hover {
color: #fff;
}
.WgD-close:hover {
color: #464646;
}
/* Imagen
-----------------------------------------*/
.WgD-container img {
max-height: 200px;
}
- 4. ابحث عن