Skip to content

Instantly share code, notes, and snippets.

@natzir
natzir / anti-google-translate-sge-redirect.js
Created May 28, 2025 18:48
Block Google AI Overviews from hijacking your website traffic via Google Translate. Automatically redirects visitors from Google Translate SGE back to your original domain.
<script type="text/javascript">
console.log("🔍 Anti Google Translate SGE");
(function() {
const urlParams = new URLSearchParams(window.location.search);
const hasSGEParam = urlParams.has("_x_tr_pto") && urlParams.get("_x_tr_pto") === "sge";
console.log("🔍 Checking _x_tr_pto parameter:", {
hasParam: urlParams.has("_x_tr_pto"),
paramValue: urlParams.get("_x_tr_pto"),
isSGE: hasSGEParam
javascript:(function(){const MAX_RETRIES=3,RETRY_DELAY=2e3,TIMEOUT_MS=3e5;let url=window.location.origin,domain=new URL(url).hostname,archiveAPI="https://web.archive.org/web/timemap/json?url="+encodeURIComponent(url)+"&matchType=prefix&collapse=urlkey&output=json&fl=original,mimetype,timestamp,groupcount&filter=statuscode:200&mimetype:text/html",proxyOptions=["https://api.allorigins.win/get?disableCache=true&url="+encodeURIComponent(archiveAPI),"https://corsproxy.io/?"+encodeURIComponent(archiveAPI),"https://cors-proxy.taskcluster.net/"+encodeURIComponent(archiveAPI)],loadingMessage=document.createElement("div");function updateLoadingMessage(e){loadingMessage.innerHTML=e}function removeLoadingMessage(){document.body.contains(loadingMessage)&&document.body.removeChild(loadingMessage)}function fetchWithTimeout(e,t={},a=TIMEOUT_MS){return Promise.race([fetch(e,t),new Promise((e,t)=>setTimeout(()=>t(new Error("Request timeout - Wayback Machine might be busy")),a))])}async function tryProxies(e=0,t=0){if(t>=proxyO
@natzir
natzir / image_captioning.ipynb
Created October 10, 2024 10:17
image_captioning.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@natzir
natzir / wayback-machine-s-robots-txt-change-visualizer.ipynb
Created October 10, 2024 08:22
Wayback Machine's Robots.txt Change Visualizer
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@natzir
natzir / youtube_video_summarizer-gpt-4.ipynb
Created October 10, 2024 08:18
YouTube_Video_Summarizer- GPT-4.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@natzir
natzir / breaking-and-fooling-c2pa-hack.ipynb
Created October 10, 2024 08:16
Breaking and Fooling C2PA [Hack]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@natzir
natzir / how-to-fool-hive-moderation-s-ai-generated-image-detection-hack.ipynb
Created October 10, 2024 08:16
How to Fool Hive Moderation's AI-Generated Image Detection [Hack]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@natzir
natzir / breaking-google-synthid-watermarking-hack.ipynb
Created October 10, 2024 08:14
Breaking Google SynthID Watermarking [Hack]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@natzir
natzir / fuzzy-booster-by-natzir-mlforseo.ipynb
Created October 10, 2024 08:13
Fuzzy Booster by Natzir - MLforSEO
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@natzir
natzir / free-google-s-robots-txt-parser-tool-official.ipynb
Created October 10, 2024 08:12
Free Google's Robots.txt Parser Tool - Official
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.