// ==UserScript==
// @name প্রিমিয়াম এড - তৌফিক সুলতান স্যার
// @namespace http://tampermonkey.net/
// @version 1.0
// @description যেকোনো সাইটে ফ্রি-ড্র্যাগেবল পপ-আপ বিজ্ঞাপন
// @author আপনি
// @match *://*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// স্টাইল ইনজেক্ট করা
const style = document.createElement('style');
style.textContent = `
/* আপনার পূর্বের সব CSS এখানে কপি করুন (নিচে সংক্ষিপ্ত রাখা হয়েছে, সম্পূর্ণ CSS পরের অংশে পাবেন) */
.ds-ad-overlay {
position: fixed; top: 20px; right: 20px; z-index: 2147483647;
width: auto; max-width: 520px; filter: drop-shadow(0 15px 28px rgba(0,0,0,0.35));
transition: opacity 0.3s; pointer-events: none; font-family: 'Inter', 'Noto Sans Bengali', sans-serif;
}
.ds-ad-banner {
pointer-events: auto; position: relative; max-width: 500px; width: 92%;
background: rgba(10,15,30,0.4); backdrop-filter: blur(12px); border-radius: 36px;
color: white; border: 1px solid rgba(255,255,255,0.3);
box-shadow: 0 20px 32px -10px rgba(0,0,0,0.5);
animation: dsFloat 3s ease-in-out infinite;
}
@keyframes dsFloat {
0%{transform:translateY(0)} 50%{transform:translateY(-5px)} 100%{transform:translateY(0)}
}
.ds-banner-content { padding: 20px 20px 18px; position: relative; z-index: 10; border-radius: 36px; }
.ds-drag-handle {
position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
background: linear-gradient(135deg,#1e1e3a,#0f0f2a); padding: 6px 28px;
border-radius: 60px; font-size: 10px; font-weight: 900; letter-spacing: 2px;
text-transform: uppercase; color: #FFE6A7; text-shadow: 0 0 8px rgba(255,80,80,0.8);
border: 1px solid rgba(255,215,0,0.6); box-shadow: 0 0 18px rgba(255,50,50,0.5);
backdrop-filter: blur(8px); white-space: nowrap; z-index: 60; cursor: grab;
}
.ds-drag-handle:active { cursor: grabbing; }
.ds-close-btn {
position: absolute; top: 12px; right: 12px; font-size: 18px; font-weight: 900;
cursor: pointer; z-index: 45; background: rgba(0,0,0,0.7); width: 28px; height: 28px;
display: flex; align-items: center; justify-content: center; border-radius: 50%;
border: 1px solid rgba(255,255,255,0.4); transition: 0.2s; backdrop-filter: blur(4px);
}
.ds-close-btn:hover { background: #c62828; transform: scale(1.08); }
/* বাকি সব স্টাইল নিচের HTML অংশে ইনলাইন আছে */
`;
document.head.appendChild(style);
// ওভারলে তৈরি
const overlay = document.createElement('div');
overlay.className = 'ds-ad-overlay';
overlay.innerHTML = `
`;
document.body.appendChild(overlay);
// অ্যানিমেশন CSS যোগ
const animStyle = document.createElement('style');
animStyle.textContent = `
@keyframes dsAuthorPulse {
0%{transform:translateY(-2px);box-shadow:0 8px 0 #8B0000}
100%{transform:translateY(-5px);box-shadow:0 14px 0 #8B0000,0 0 16px rgba(255,100,0,0.5)}
}
@keyframes dsScroll {
0%{transform:translateX(0)} 100%{transform:translateX(-50%)}
}
.ds-rot-btn {
animation: dsRGBFlash 6s infinite ease-in-out;
}
@keyframes dsRGBFlash {
0%,86%,100%{transform:scale(1);box-shadow:0 0 0 2px #000,0 0 0 4px rgba(255,85,85,0.6),0 0 0 6px rgba(255,255,255,0.3)}
89%{transform:scale(1.07);box-shadow:0 0 0 2px #000,0 0 0 6px #ff00ff,0 0 0 12px rgba(255,0,255,0.9),0 0 25px #ff00ff}
92%{transform:scale(1.07);box-shadow:0 0 0 2px #000,0 0 0 6px #00ffff,0 0 0 12px rgba(0,255,255,0.9),0 0 25px #00ffff}
95%{transform:scale(1.07);box-shadow:0 0 0 2px #000,0 0 0 6px #ffff00,0 0 0 12px rgba(255,255,0,0.9),0 0 25px #ffff00}
97%{transform:scale(1.04);box-shadow:0 0 0 2px #000,0 0 0 6px #ffffff,0 0 0 12px rgba(255,255,255,0.7)}
99%{transform:scale(1.01)}
}
`;
document.head.appendChild(animStyle);
// ========== ফ্রি ড্র্যাগ (উভয় অক্ষ) ==========
const dragHandle = document.getElementById('ds-dragHandle');
let isDragging = false, startX, startY, startLeft, startTop;
function getComputedPosition() {
const style = window.getComputedStyle(overlay);
return {
left: parseFloat(style.left) || 0,
top: parseFloat(style.top) || 0
};
}
function onDragStart(e) {
e.preventDefault();
isDragging = true;
const clientX = e.type === 'mousedown' ? e.clientX : e.touches[0].clientX;
const clientY = e.type === 'mousedown' ? e.clientY : e.touches[0].clientY;
startX = clientX;
startY = clientY;
const pos = getComputedPosition();
startLeft = pos.left;
startTop = pos.top;
overlay.style.transition = 'none';
overlay.style.right = 'auto'; // right ভিত্তিক পজিশন সরিয়ে left ব্যবহার
overlay.style.bottom = 'auto';
}
function onDragMove(e) {
if (!isDragging) return;
e.preventDefault();
const clientX = e.type === 'mousemove' ? e.clientX : e.touches[0].clientX;
const clientY = e.type === 'mousemove' ? e.clientY : e.touches[0].clientY;
let deltaX = clientX - startX;
let deltaY = clientY - startY;
let newLeft = startLeft + deltaX;
let newTop = startTop + deltaY;
// সীমার মধ্যে রাখা
const maxX = window.innerWidth - overlay.offsetWidth - 10;
const maxY = window.innerHeight - overlay.offsetHeight - 10;
newLeft = Math.min(Math.max(newLeft, 10), maxX);
newTop = Math.min(Math.max(newTop, 10), maxY);
overlay.style.left = newLeft + 'px';
overlay.style.top = newTop + 'px';
}
function onDragEnd() {
isDragging = false;
overlay.style.transition = '';
}
dragHandle.addEventListener('mousedown', onDragStart);
dragHandle.addEventListener('touchstart', onDragStart, { passive: false });
window.addEventListener('mousemove', onDragMove);
window.addEventListener('mouseup', onDragEnd);
window.addEventListener('touchmove', onDragMove, { passive: false });
window.addEventListener('touchend', onDragEnd);
// ========== পপ-আপ অ্যানিমেশন ৩ সেকেন্ড পরে ==========
overlay.style.opacity = '0';
overlay.style.transform = 'scale(0.7)';
overlay.style.right = 'auto';
overlay.style.bottom = 'auto';
setTimeout(() => {
const rect = overlay.getBoundingClientRect();
const winW = window.innerWidth, winH = window.innerHeight;
let left = (winW - rect.width) / 2;
let top = (winH - rect.height) / 2;
const margin = 50;
left = Math.max(margin, Math.min(left, winW - rect.width - margin));
top = Math.max(margin, Math.min(top, winH - rect.height - margin));
overlay.style.left = left + 'px';
overlay.style.top = top + 'px';
overlay.style.transition = 'opacity 0.4s cubic-bezier(0.34,1.56,0.64,1), transform 0.4s cubic-bezier(0.34,1.56,0.64,1)';
overlay.style.transform = 'scale(1)';
overlay.style.opacity = '1';
}, 3000);
// ========== বাটন শাফল ==========
const rotatingDiv = document.getElementById('ds-rotatingBtns');
const btns = Array.from(rotatingDiv.children);
setInterval(() => {
for (let i = btns.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
rotatingDiv.insertBefore(btns[j], btns[i]);
}
}, 3000);
// ========== টাইপিং ইফেক্ট ==========
const searchSpan = document.getElementById('ds-searchText');
const queries = ["Writer Towfiq Sultan Sir", "Al Towfiqi Family", "World of Knowledge", "Welftion Love Of Welfare"];
let qIdx = 0, typed = '', isDeleting = false;
setInterval(() => {
const full = queries[qIdx];
if (!isDeleting) {
if (typed.length < full.length) typed = full.substring(0, typed.length + 1);
else { isDeleting = true; return; }
} else {
if (typed.length > 0) typed = typed.slice(0, -1);
else { isDeleting = false; qIdx = (qIdx + 1) % queries.length; }
}
searchSpan.textContent = typed;
}, 100);
document.getElementById('ds-searchBar').addEventListener('click', () => {
window.open('https://www.google.com/search?q=Writer+Towfiq+Sultan+Sir', '_blank');
});
const bottomEl = document.getElementById('ds-bottomMsg');
const msgs = ["📚 Collect \"World of Knowledge\" by Writer Towfiq Sultan Sir", "📖 Special Edition: Towfiq Sultan - Bestseller", "🏆 Grab your copy of World of Knowledge today!"];
let mIdx = 0, mTyped = '', mDeleting = false;
setInterval(() => {
const full = msgs[mIdx];
if (!mDeleting) {
if (mTyped.length < full.length) mTyped = full.substring(0, mTyped.length + 1);
else { mDeleting = true; return; }
} else {
if (mTyped.length > 0) mTyped = mTyped.slice(0, -1);
else { mDeleting = false; mIdx = (mIdx + 1) % msgs.length; }
}
bottomEl.textContent = mTyped;
}, 110);
// ভিডিও ট্র্যাক
const videoIds = ["vRntUpLSESM", "Fs2OuGsu3U8", "VCaCcrySMZg", "d2i3cWuO9ZE", "bNYkszQXQ_4"];
const track = document.getElementById('ds-videoTrack');
const duplicated = [...videoIds, ...videoIds];
duplicated.forEach(vid => {
const item = document.createElement('div');
item.style.cssText = 'width:190px;height:108px;flex-shrink:0;border-radius:16px;overflow:hidden;transition:transform 0.25s;';
item.innerHTML = ``;
item.addEventListener('mouseenter', () => {
item.style.transform = 'scale(1.08)';
const iframe = item.querySelector('iframe');
iframe.contentWindow.postMessage('{"event":"command","func":"unMute","args":""}', '*');
iframe.contentWindow.postMessage('{"event":"command","func":"setVolume","args":[50]}', '*');
});
item.addEventListener('mouseleave', () => {
item.style.transform = 'scale(1)';
const iframe = item.querySelector('iframe');
iframe.contentWindow.postMessage('{"event":"command","func":"mute","args":""}', '*');
});
track.appendChild(item);
});
// ক্লোজ বাটন
document.getElementById('ds-closeTrigger').addEventListener('click', () => {
overlay.style.transition = 'opacity 0.3s';
overlay.style.opacity = '0';
setTimeout(() => overlay.remove(), 300);
});
})();
শুক্রবার, ১০ এপ্রিল, ২০২৬
Author: অনলাইন ডেস্ক
Welftion Love Of Welfare May Allah Blees Us - may allah bless you. Promote By, Al Towfiqi Family Towfiq Sultan

0 coment rios: