<%
const query = q.toLowerCase().trim();
let answer = '';
function isMathExpression(query) {
return /^[0-9\s\+\-\*\/\.\x]+$/.test(query);
}
if (/^[0-9\s+\-*/.x]+$/.test(query)) {
const expr = query.replace(/\s+/g, '');
answer = expr === '9+10' ? '21' : (() => {
try { return eval(expr); } catch { return 'Invalid Expression'; }
})();
return answer;
}
function getCurrentDate() {
const now = new Date();
return now.toLocaleDateString();
}
function getCurrentYear() {
return new Date().getFullYear();
}
function getTimeInTimezone(location) {
const tzMap = {
"california": "America/Los_Angeles",
"new york": "America/New_York",
"chicago": "America/Chicago",
"denver": "America/Denver",
"phoenix": "America/Phoenix",
"anchorage": "America/Anchorage",
"honolulu": "Pacific/Honolulu",
"london": "Europe/London",
"paris": "Europe/Paris",
"berlin": "Europe/Berlin",
"madrid": "Europe/Madrid",
"rome": "Europe/Rome",
"moscow": "Europe/Moscow",
"athens": "Europe/Athens",
"sydney": "Australia/Sydney",
"melbourne": "Australia/Melbourne",
"brisbane": "Australia/Brisbane",
"perth": "Australia/Perth",
"tokyo": "Asia/Tokyo",
"osaka": "Asia/Osaka",
"seoul": "Asia/Seoul",
"beijing": "Asia/Shanghai",
"shanghai": "Asia/Shanghai",
"hong kong": "Asia/Hong_Kong",
"taipei": "Asia/Taipei",
"bangkok": "Asia/Bangkok",
"jakarta": "Asia/Jakarta",
"delhi": "Asia/Kolkata",
"mumbai": "Asia/Kolkata",
"karachi": "Asia/Karachi",
"dubai": "Asia/Dubai",
"abu dhabi": "Asia/Dubai",
"riyadh": "Asia/Riyadh",
"johannesburg": "Africa/Johannesburg",
"cairo": "Africa/Cairo",
"nairobi": "Africa/Nairobi",
"lagos": "Africa/Lagos",
"algiers": "Africa/Algiers",
"casablanca": "Africa/Casablanca",
"lisbon": "Europe/Lisbon",
"dublin": "Europe/Dublin",
"zurich": "Europe/Zurich",
"vienna": "Europe/Vienna",
"stockholm": "Europe/Stockholm",
"oslo": "Europe/Oslo",
"helsinki": "Europe/Helsinki",
"prague": "Europe/Prague",
"budapest": "Europe/Budapest",
"warsaw": "Europe/Warsaw",
"bucharest": "Europe/Bucharest",
"sofia": "Europe/Sofia",
"zagreb": "Europe/Zagreb",
"belgrade": "Europe/Belgrade",
"sarajevo": "Europe/Sarajevo",
"podgorica": "Europe/Podgorica",
"ljubljana": "Europe/Ljubljana",
"tirana": "Europe/Tirane",
"valletta": "Europe/Malta",
"andorra la vella": "Europe/Andorra",
"monaco": "Europe/Monaco",
"luxembourg": "Europe/Luxembourg",
"bratislava": "Europe/Bratislava",
"vilnius": "Europe/Vilnius",
"riga": "Europe/Riga",
"tallinn": "Europe/Tallinn",
"istanbul": "Europe/Istanbul",
"jerusalem": "Asia/Jerusalem",
"amman": "Asia/Amman",
"beirut": "Asia/Beirut",
"damascus": "Asia/Damascus",
"baghdad": "Asia/Baghdad",
"tehran": "Asia/Tehran",
"islamabad": "Asia/Karachi",
"kathmandu": "Asia/Kathmandu",
"thimphu": "Asia/Thimphu",
"dhaka": "Asia/Dhaka",
"yangon": "Asia/Yangon",
"hanoi": "Asia/Ho_Chi_Minh",
"ho chi minh city": "Asia/Ho_Chi_Minh",
"manila": "Asia/Manila",
"singapore": "Asia/Singapore",
"kuala lumpur": "Asia/Kuala_Lumpur",
"colombo": "Asia/Colombo",
"bagotville": "America/Montreal",
"toronto": "America/Toronto",
"vancouver": "America/Vancouver",
"mexico city": "America/Mexico_City",
"guadalajara": "America/Mexico_City",
"monterrey": "America/Monterrey",
"sao paulo": "America/Sao_Paulo",
"buenos aires": "America/Argentina/Buenos_Aires",
"santiago": "America/Santiago",
"rio de janeiro": "America/Sao_Paulo",
"caracas": "America/Caracas",
"bogota": "America/Bogota",
"lima": "America/Lima",
"quito": "America/Quito",
"georgetown": "America/Guyana",
"paramaribo": "America/Paramaribo",
"cayenne": "America/Cayenne",
"kingston": "America/Jamaica",
"port_of_spain": "America/Port_of_Spain",
"st johns": "America/St_Johns",
"midway": "Pacific/Midway",
"apia": "Pacific/Apia",
"nuku alofa": "Pacific/Tongatapu",
"tarawa": "Pacific/Tarawa",
"funafuti": "Pacific/Funafuti",
"suva": "Pacific/Fiji",
"chatham": "Pacific/Chatham",
"pitcairn": "Pacific/Pitcairn",
"galapagos": "Pacific/Galapagos",
"easter island": "Pacific/Easter",
"honiara": "Pacific/Guadalcanal",
"port vila": "Pacific/Efate",
"palikir": "Pacific/Pohnpei",
"palau": "Pacific/Palau",
"mcmurdo": "Antarctica/McMurdo",
"rothera": "Antarctica/Rothera",
"troll": "Antarctica/Troll",
"davis": "Antarctica/Davis",
"casey": "Antarctica/Casey",
"mawson": "Antarctica/Mawson",
"vostok": "Antarctica/Vostok",
"syowa": "Antarctica/Syowa",
"gmt": "Etc/GMT",
"utc": "UTC"
};
const timezone = tzMap[location.toLowerCase()];
if (!timezone) {
return null;
}
const now = new Date();
const options = { timeZone: timezone, timeStyle: 'medium', hour12: false };
return now.toLocaleTimeString('en-US', options);
}
function randomCompliment() {
const compliments = [
"Youโre an awesome friend.",
"You light up the room.",
"You have a great sense of humor.",
"You make a difference.",
"You're like a ray of sunshine."
];
return compliments[Math.floor(Math.random() * compliments.length)];
}
function randomEncouragement() {
const encourages = [
"Keep goingโyouโve got this!",
"Donโt give up now!",
"Every step counts.",
"Believe in yourself.",
"You can do anything."
];
return encourages[Math.floor(Math.random() * encourages.length)];
}
function base64Encode(str) {
return btoa(str);
}
function base64Decode(str) {
try {
return atob(str);
} catch {
return 'Invalid Base64';
}
}
function hexToDec(str) {
return parseInt(str.replace(/^0x/, ''), 16).toString();
}
function decToHex(num) {
return Number(num).toString(16);
}
function textToCharCodes(text) {
return text.split('').map(c => c.charCodeAt(0)).join(' ');
}
function charCodesToText(codes) {
return String.fromCharCode(...codes.split(/\s+/).map(n => +n));
}
function countWords(text) {
return text.trim().split(/\s+/).length;
}
function titleCase(text) {
return text
.split(' ')
.map(w => w.charAt(0).toUpperCase() + w.slice(1).toLowerCase())
.join(' ');
}
function slugify(text) {
return text
.toLowerCase()
.trim()
.replace(/[^a-z0-9]+/g, '-')
.replace(/^-+|-+$/g, '');
}
function isPrime(n) {
n = Number(n);
if (n < 2) return false;
for (let i = 2; i <= Math.sqrt(n); i++) {
if (n % i === 0) return false;
}
return true;
}
function gcd(a, b) {
a = Math.abs(a); b = Math.abs(b);
while (b) [a, b] = [b, a % b];
return a;
}
function lcm(a, b) {
return Math.abs(a * b) / gcd(a, b);
}
function fibonacci(n) {
n = Number(n);
if (n < 2) return n;
let a = 0, b = 1;
for (let i = 2; i <= n; i++) [a, b] = [b, a + b];
return b;
}
function generatePassword(length = 8) {
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()';
let pw = '';
for (let i = 0; i < length; i++) {
pw += chars.charAt(Math.floor(Math.random() * chars.length));
}
return pw;
}
function daysUntil(dateStr) {
const now = new Date();
const then = new Date(dateStr);
const diff = then - now;
return diff > 0
? Math.ceil(diff / (1000 * 60 * 60 * 24)) + ' days'
: 'Date passed';
}
function generateUUID() {
return ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(
/[018]/g,
c => (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16)
);
}
function generateRandomString(length = 8) {
const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
let s = '';
for (let i = 0; i < length; i++) {
s += chars.charAt(Math.floor(Math.random() * chars.length));
}
return s;
}
const emojiMap = {
"grinning face":"๐","grin":"๐","smiley":"๐","smile":"๐","sweat smile":"๐
",
"joy":"๐","rofl":"๐คฃ","relaxed":"โบ๏ธ","blush":"๐","innocent":"๐",
"slightly_smiling_face":"๐","upside_down":"๐","wink":"๐","relieved":"๐",
"heart eyes":"๐","kissing_heart":"๐","kissing":"๐","kissing_smiling_eyes":"๐",
"kissing_closed_eyes":"๐","yum":"๐","stuck out tongue":"๐","stuck out tongue wink":"๐",
"stuck out tongue closed eyes":"๐","money_mouth":"๐ค","hug":"๐ค","nerd":"๐ค",
"sunglasses":"๐","star_struck":"๐คฉ","thinking":"๐ค","zipper_mouth":"๐ค",
"raised_eyebrow":"๐คจ","neutral":"๐","expressionless":"๐","no_mouth":"๐ถ",
"roll_eyes":"๐","smirk":"๐","persevere":"๐ฃ","disappointed_relieved":"๐ฅ",
"cold_sweat":"๐ฐ","pensive":"๐","confused":"๐","worried":"๐","slightly_frowning":"๐",
"frowning":"โน๏ธ","anguished":"๐ง","open_mouth":"๐ฎ","grimacing":"๐ฌ","hushed":"๐ฏ",
"astonished":"๐ฒ","flushed":"๐ณ","pleading":"๐ฅบ","frowning2":"๐ฆ","anguished2":"๐ง",
"cry":"๐ข","disappointed":"๐","scream":"๐ฑ","fearful":"๐จ","tired_face":"๐ซ",
"weary":"๐ฉ","triumph":"๐ค","angry":"๐ ","rage":"๐ก","poop":"๐ฉ","thumbsup":"๐",
"thumbsdown":"๐","clap":"๐","raised_hands":"๐","pray":"๐","muscle":"๐ช","eyes":"๐",
"ear":"๐","nose":"๐","tongue":"๐
","lips":"๐","kiss":"๐","crown":"๐","womans hat":"๐",
"eyeglasses":"๐","necktie":"๐","shirt":"๐","jeans":"๐","dress":"๐","kimono":"๐",
"bikini":"๐","sandal":"๐ก","boot":"๐ข","mans shoe":"๐","high heel":"๐ ","sock":"๐งฆ",
"gloves":"๐งค","scarf":"๐งฃ","tophat":"๐ฉ","billed cap":"๐งข","flag us":"๐บ๐ธ","flag gb":"๐ฌ๐ง",
"flag ca":"๐จ๐ฆ","flag de":"๐ฉ๐ช","flag fr":"๐ซ๐ท","flag es":"๐ช๐ธ","flag it":"๐ฎ๐น","flag jp":"๐ฏ๐ต",
"flag cn":"๐จ๐ณ","flag in":"๐ฎ๐ณ","flag br":"๐ง๐ท","flag ru":"๐ท๐บ","flag za":"๐ฟ๐ฆ","flag au":"๐ฆ๐บ",
"flag nz":"๐ณ๐ฟ","flag ng":"๐ณ๐ฌ","flag eg":"๐ช๐ฌ","flag ar":"๐ฆ๐ท","flag mx":"๐ฒ๐ฝ","flag kr":"๐ฐ๐ท",
"flag tr":"๐น๐ท",
// animals
"dog face":"๐ถ","cat face":"๐ฑ","mouse face":"๐ญ","hamster":"๐น","rabbit":"๐ฐ",
"fox face":"๐ฆ","bear face":"๐ป","koala":"๐จ","tiger face":"๐ฏ","lion face":"๐ฆ",
"cow face":"๐ฎ","pig face":"๐ท","frog face":"๐ธ","octopus":"๐","monkey face":"๐ต",
"chicken":"๐","penguin":"๐ง","bird":"๐ฆ","baby chick":"๐ค","hatching chick":"๐ฃ",
// nature
"sun":"โ๏ธ","moon":"๐","star":"โญ๏ธ","cloud":"โ๏ธ","umbrella":"โ๏ธ","snowflake":"โ๏ธ",
"fire":"๐ฅ","droplet":"๐ง","ocean":"๐","volcano":"๐","cactus":"๐ต","palm tree":"๐ด",
"evergreen tree":"๐ฒ","deciduous tree":"๐ณ","fallen leaf":"๐","maple leaf":"๐",
"seedling":"๐ฑ","flower":"๐ธ","rose":"๐น","sunflower":"๐ป","blossom":"๐ผ",
//food
"grapes":"๐","watermelon":"๐","tangerine":"๐","banana":"๐","pineapple":"๐",
"apple":"๐","pear":"๐","peach":"๐","strawberry":"๐","cherries":"๐","mango":"๐ฅญ",
"lemon":"๐","coffee":"โ๏ธ","tea":"๐ต","beer":"๐บ","wine glass":"๐ท","cocktail":"๐ธ",
"tropical drink":"๐น","birthday cake":"๐","pizza":"๐","hamburger":"๐","fries":"๐",
"hot dog":"๐ญ","taco":"๐ฎ","burrito":"๐ฏ","popcorn":"๐ฟ","chocolate bar":"๐ซ",
"candy":"๐ฌ","lollipop":"๐ญ","honey pot":"๐ฏ"
};
let m;
if (isMathExpression(query)) {
answer = evaluateMathExpression(query);
} else if (query.includes('date') || query.includes('what date is it')) {
answer = getCurrentDate();
} else if (query.includes('year') || query.includes('what year is it')) {
answer = getCurrentYear();
} else if (query.includes('what time is it in')) {
const location = query.split('what time is it in')[1].trim();
answer = getTimeInTimezone(location);
} else if (query.includes('what time is it')) {
answer = new Date().toLocaleTimeString();
} else if (query.includes('day') || query.includes('what day is it')) {
const now = new Date();
const options = { weekday: 'long' };
answer = now.toLocaleDateString(undefined, options);
} else if (query.includes('u are cute') || query.includes('you are cute')) {
answer = "jifshfgdhjf >~< no u";
} else if (query.includes('ur cute') || query.includes('your cute')) {
answer = "efkohgefgef >///< no u";
} else if (query.includes('am i cute') || query.includes('am i a cutie?')) {
answer = "yesh :3 u are ";
} else if (query.includes('am i a good girl') || query.includes('am i a good boy?')) {
answer = query.includes('girl')
? "yesh :3 u are a good girl"
: "yesh :3 u are a good boy";
} else if (query.includes('ur hot') || query.includes('you are hot')) {
answer = "jrifyehgyerfgu9wdswgfsafgydwgbfwdfge >~< ";
} else if (/^(?:emoji\s+(.+)|(.+)\s+emoji)$/.test(query)) {
const match = query.match(/^(?:emoji\s+(.+)|(.+)\s+emoji)$/);
let name = (match[1] || match[2]).trim().toLowerCase();
const keySpace = name.replace(/_/g, ' ');
const keyUnderscore = name.replace(/\s+/g, '_');
answer = emojiMap[keySpace]
|| emojiMap[keyUnderscore]
|| 'Unknown emoji';
} else if (query.includes('compliment')) {
answer = randomCompliment();
} else if (query.includes('encouragement') || query.includes('encourage me')) {
answer = randomEncouragement();
} else if (query.startsWith('base64 encode ')) {
answer = base64Encode(query.slice(14));
} else if (query.startsWith('base64 decode ')) {
answer = base64Decode(query.slice(14));
} else if ((m = /0x[0-9a-f]+/i.exec(query))) {
answer = hexToDec(m[0]);
} else if (query.match(/\d+\s+to\s+hex/i)) {
answer = decToHex(query.match(/\d+/)[0]);
} else if (query.startsWith('char codes for ')) {
answer = textToCharCodes(query.slice(15));
} else if (query.startsWith('text from codes ')) {
answer = charCodesToText(query.slice(16));
} else if (query.startsWith('word count of ')) {
answer = countWords(query.slice(14)).toString();
} else if (query.startsWith('titlecase ')) {
answer = titleCase(query.slice(10));
} else if (query.startsWith('slugify ')) {
answer = slugify(query.slice(8));
} else if (query.match(/\bprime\b/)) {
answer = isPrime(query.match(/\d+/)[0]) ? 'Yes' : 'No';
} else if (query.includes('gcd of ')) {
const nums = query.match(/\d+/g);
answer = gcd(nums[0], nums[1]).toString();
} else if (query.includes('lcm of ')) {
const nums = query.match(/\d+/g);
answer = lcm(nums[0], nums[1]).toString();
} else if (query.match(/fib(?:onacci)?\s*\d+/i)) {
answer = fibonacci(query.match(/\d+/)[0]).toString();
} else if (query.startsWith('generate password')) {
const n = query.match(/\d+/);
answer = generatePassword(n ? Number(n[0]) : undefined);
} else if (query.includes('days until ')) {
answer = daysUntil(query.split('days until ')[1].trim());
} else if (query.includes('uuid')) {
answer = generateUUID();
} else if (query.startsWith('random string')) {
const n = query.match(/\d+/);
answer = generateRandomString(n ? Number(n[0]) : undefined);
}
const upsellMessages = [
"[new] Try searching 'What's 4+4?'",
"[new] Ask 'What's the date today?'",
"[new] Try 'What time is it in California?'",
"[new] Ask 'What's the current year?'",
"[new] Try searching 'What's 7*8?'"
];
const showUpsell = !answer && Math.random() < 0.1;
const randomUpsellMessage = showUpsell ? upsellMessages[Math.floor(Math.random() * upsellMessages.length)] : '';
function extractQueryFromUpsellMessage(message) {
return message.replace("[new] Try searching '", "")
.replace("[new] Try '", "")
.replace("[new] Ask '", "")
.replace("[new] Try ", "")
.replace("'", "")
.replace("?", "")
.trim();
}
%>
%>
<% if (answer) { %>
Answer to ur question
<%= answer %>
Copy
Ask ChatGPT
<% } else if (showUpsell) { %>
<% } %>
<%
const searchStrings = [
"\\bsuicide\\b", "\\bself harm\\b", "\\bself-harm\\b", "\\bsupport\\b", "\\bmurder\\b",
"\\bhow to murder\\b", "\\bkill myself\\b", "\\bend my life\\b", "\\bdepressed\\b",
"\\bdepression\\b", "\\blonely\\b", "\\bhurt myself\\b", "\\bselfharm\\b", "\\bdying\\b",
"\\bwant to die\\b", "\\bkill\\b", "\\bdie\\b", "\\bfamily problems\\b", "\\bfamily issues\\b",
"\\babuse\\b", "\\bdomestic violence\\b", "\\babusive parents\\b", "\\bfamily conflict\\b",
"\\bestranged\\b", "\\bdisowned\\b", "\\brun away\\b", "\\brunaway\\b", "\\b.full stop punctuation.\\b"
];
if (searchStrings.some(str => new RegExp(str, 'i').test(q))) {
%>
โค๏ธ
You are not alone
If you're having a tough time or know someone who is, reaching out and talking to someone can really help.
In the US? Call 988 for support. Not in the US? Check out this link for worldwide help.
LGBTQ+ and need someone to talk to? Try the Trevor Project at 1-866-488-7386 or text START to 678-678 . For more options, IMAlive is also available.
Remember, ur not alone. u matter, and there's always someone who cares. and you are really important btw! โค๏ธ
wrong filter? Report :3
<% } %>
<%
const fakeNewsSources = {
"InfoWars": {
category: "conspiracy",
reason: "InfoWars has been widely criticized for promoting conspiracy theories and false information, such as falsely claiming that the Sandy Hook Elementary School shooting was a hoax.",
search: "Is it true that InfoWars promotes conspiracy theories and false information?"
},
"Breitbart": {
category: "conservative",
reason: "Breitbart is known for its extreme political bias and spreading misleading information, including downplaying the severity of COVID-19.",
search: "Is it true that Breitbart spreads misleading information about COVID-19?"
},
"Daily Mail": {
category: "tabloid",
reason: "The Daily Mail is frequently criticized for sensationalism and misinformation, such as publishing misleading health and science stories.",
search: "Is it true that the Daily Mail publishes misleading health and science stories?"
},
"Natural News": {
category: "pseudoscience",
reason: "Natural News promotes pseudoscience and conspiracy theories, including false vaccine claims and unverified health information.",
search: "Is it true that Natural News promotes pseudoscience and false vaccine claims?"
},
"RT news": {
category: "state-sponsored",
reason: "RT is a state-funded media outlet known for promoting Russian government perspectives and biased reporting on international issues.",
search: "Is it true that RT promotes Russian government perspectives and biased reporting?"
},
"Sputnik": {
category: "state-sponsored",
reason: "Sputnik spreads Russian state propaganda and publishes misleading information about Western countries.",
search: "Is it true that Sputnik spreads Russian state propaganda?"
},
"Before It's News": {
category: "conspiracy",
reason: "Before It's News is known for spreading conspiracy theories and fake news, including fabricated stories about global events.",
search: "Is it true that Before It's News spreads conspiracy theories and fake news?"
},
"Your News Wire": {
category: "conspiracy",
reason: "Your News Wire publishes false information and conspiracy theories, including fabricated reports on various topics.",
search: "Is it true that Your News Wire publishes false information and conspiracy theories?"
},
"WorldTruth.TV": {
category: "conspiracy",
reason: "WorldTruth.TV spreads conspiracy theories and pseudoscience, including false health information and other dubious claims.",
search: "Is it true that WorldTruth.TV spreads conspiracy theories and pseudoscience?"
},
"NewsPunch": {
category: "conspiracy",
reason: "NewsPunch publishes false information and conspiracy theories, including unsubstantiated claims about political figures.",
search: "Is it true that NewsPunch publishes false information and conspiracy theories?"
},
"Civic Tribune": {
category: "fake-news",
reason: "Civic Tribune is known for hoaxes and misinformation, including fabricated stories about political events.",
search: "Is it true that Civic Tribune is known for hoaxes and misinformation?"
},
"The Daily Stormer": {
category: "extremist",
reason: "The Daily Stormer promotes hate speech and extremist views, including anti-Semitic and other hateful content.",
search: "Is it true that The Daily Stormer promotes hate speech and extremist views?"
},
"Times of Israel": {
category: "state-sponsored",
reason: "Times of Israel has faced criticism for biased reporting and spreading propaganda, especially regarding the Israel-Palestine conflict.",
search: "Is it true that Times of Israel has biased reporting on the Israel-Palestine conflict?"
},
"Zero Hedge": {
category: "conspiracy",
reason: "Zero Hedge promotes conspiracy theories and financial misinformation, including false claims about market events.",
search: "Is it true that Zero Hedge promotes conspiracy theories and financial misinformation?"
},
"Pravda": {
category: "state-sponsored",
reason: "Pravda is a state-run media outlet known for spreading Russian government propaganda with a history of biased reporting on international events.",
search: "Is it true that Pravda spreads Russian government propaganda?"
},
"Press TV": {
category: "state-sponsored",
reason: "Press TV promotes Iranian government propaganda and often spreads biased information about Western countries.",
search: "Is it true that Press TV promotes Iranian government propaganda?"
},
"Fox News": {
category: "conservative",
reason: "Fox News is often criticized for extreme political bias and misinformation, such as its reporting on the 2020 US election.",
search: "Is it true that Fox News has extreme political bias and misinformation?"
},
"The Blaze": {
category: "conservative",
reason: "The Blaze promotes right-wing viewpoints and sometimes misleading information, including false claims about political figures.",
search: "Is it true that The Blaze promotes misleading information?"
},
"OANN": {
category: "conservative",
reason: "OANN spreads far-right viewpoints and conspiracy theories, including false claims about election fraud.",
search: "Is it true that OANN spreads far-right viewpoints and conspiracy theories?"
},
"Newsmax": {
category: "conservative",
reason: "Newsmax promotes extreme right-wing perspectives and misinformation, including false claims about the COVID-19 pandemic.",
search: "Is it true that Newsmax promotes extreme right-wing perspectives and misinformation?"
},
"Al Jazeera": {
category: "state-sponsored",
reason: "Al Jazeera, a Qatar state-funded media outlet, has a history of promoting government viewpoints and biased reporting on Middle Eastern conflicts.",
search: "Is it true that Al Jazeera promotes government viewpoints and biased reporting?"
},
"The Sun": {
category: "tabloid",
reason: "The Sun is known for sensationalism and often publishes exaggerated or false stories, particularly about celebrities and high-profile topics.",
search: "Is it true that The Sun publishes exaggerated or false stories?"
}
};
const normalizedQuery = q.toLowerCase().replace(/\s+/g, '');
const matchedSource = Object.keys(fakeNewsSources).find(source => normalizedQuery.includes(source.toLowerCase().replace(/\s+/g, '')));
if (q.includes('-debug-news')) {
%>
๐ Debug Info
Here are all the sources and their details:
<% Object.keys(fakeNewsSources).forEach(source => { %>
<%= source %> - <%= fakeNewsSources[source].reason %>
Find more info
<% }); %>
<% } else if (matchedSource) { %>
๐ซ
Be Cautious with This Source
Hai there! It looks like you might be looking at info from <%= matchedSource %> , which is known for spreading fake news or propaganda.
Here are some tips to check if what you're reading is legit:
Check the source's rep: Reliable sites usually have a good track record for being accurate and fair.
See if other reputable sites are reporting the same news: If it's just one place, be cautious.
Use fact-checking sites: Try Snopes or FactCheck.org .
Look at the publication date: Make sure it's current and not out of context.
Check for links and citations: Good articles usually back up their claims with evidence.
wrong filter? Report :3
<% } %>
<% if (q.includes("whats your eta")) { %>
2 MINUTES!
<% } %>
<% if (q.includes("fish")) { %>
๐
<% } %>
<% if (q.includes("how to be racist?")) { %>
dont.
<% } %>
<% if (!tab) { %>
<% if (invresults?.length < 1) { %>
no results found :c u can try YouTube to find the video ur wanting!!! ^_^
<% } %>
<% if (invresults?.results) { %>
<% invresults.results.forEach(x => { %>
Watch :3
<%= turntomins(x.lengthSeconds) %>
<%= x.title %>
<%= x.viewCountText %> โข <%= x.publishedText %>
<%= x.author %><% if (x?.authorVerified) { %>
<% } %>
<%
const badgeConfig = [
{ show: x?.hasCaptions, label: "Subtitles" },
{ show: x?.isNew, label: "New" },
{ show: x?.is4k, label: "4K Ultra-HD" },
{ show: x?.is8k, label: "8K" },
{ show: x?.isVr360, label: "VR 360ยฐ" },
{ show: x?.isVr180, label: "VR 180ยฐ" },
];
badgeConfig.forEach(b => {
if (b.show) { %>
<%= b.label %>
<% } }) %>
<% }) %>
<% } else if (invresults) { %>
<% invresults.forEach(x => { %>
Watch :3
<%= turntomins(x.lengthSeconds) %>
<%= x.title %>
<%= x.viewCountText %> โข <%= x.publishedText %>
<%
const badgeConfig = [
{ show: x?.hasCaptions, label: "Subtitles" },
{ show: x?.isNew, label: "New" },
{ show: x?.is4k, label: "4K Ultra-HD" },
{ show: x?.is8k, label: "8K" },
{ show: x?.isVr360, label: "VR 360ยฐ" },
{ show: x?.isVr180, label: "VR 180ยฐ" },
];
badgeConfig.forEach(b => {
if (b.show) { %>
<%= b.label %>
<% } }) %>
<% }) %>
<% } %>
<% if (invresults?.length >= 1) { %>
<% if (Number(continuation) >= "2") { %>
First Page
Next Page
<% } %>
<% if (Number(continuation) <= "0" || !continuation) { %>
Next Page
<% } %>
<% } %>
<% } %>
<% if (tab === "web") { %>
<% results.forEach(x => { %>
<% }) %>
<% } %>