This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @typedef {Object} Env | |
*/ | |
export default { | |
/** | |
* @param {Request} request | |
* @param {Env} env | |
* @param {ExecutionContext} ctx | |
* @returns {Promise<Response>} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Interface to bind in this example | |
# ID: wlan0, IP: 192.168.10.183, Gateway: 192.168.10.1 | |
docker network create -d bridge --subnet=172.18.0.0/16 --gateway=172.18.0.1 -o com.docker.network.bridge.enable_ip_masquerade=false -o com.docker.network.bridge.name=docker_binded docker_binded | |
echo '1 docker_binded' >> /etc/iproute2/rt_tables | |
ip rule add from 172.18.0.0/16 tab docker_binded | |
ip route add 172.18.0.0/16 dev wlan0 tab docker_binded |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Allow IG Likes to be opened in new tab | |
// @namespace Violentmonkey Scripts | |
// @match https://www.instagram.com/* | |
// @grant none | |
// @version 1.0 | |
// @author retrievaaaa | |
// @description Allows you to open your likes on the my activity page in a new tab by middle clicking / scroll wheel clicking | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "pch.h" | |
#include "detours.h" | |
#include <winuser.h> | |
#include <WtsApi32.h> | |
#pragma comment(lib, "detours.lib") | |
#pragma comment(lib, "user32.lib") | |
#pragma comment(lib, "WtsApi32.lib") | |
void StartHookingFunction(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "pch.h" | |
#include <WtsApi32.h> | |
#include <string> | |
#include "rpc.h" | |
#include "detours/detours.h" | |
#pragma comment(lib, "detours.lib") | |
#pragma comment(lib, "WtsApi32.lib") | |
#pragma comment(lib, "Rpcrt4.lib") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name X (Twitter) - v1.18 + Verified-No-Followback + Start/Stop Toggle + Dark Mode (All Text White) | |
// @namespace http://tampermonkey.net/ | |
// @version 1.18 | |
// @description Contextual counters, S=Start, A=Abort, P=Pause, E=Export, ignore list, plus an option to unfollow verified if they don’t follow back, with Start/Stop toggles and Dark Mode (all text white) | |
// @match https://x.com/* | |
// @grant none | |
// ==/UserScript== | |
(function() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const el = document.createElement("iframe") | |
el.src = document.getElementsByTagName('iframe')[0].src.replace(/(tgWebAppPlatform=)[^&]+/, "$1android") | |
document.querySelector("iframe").remove() | |
el.height = "100%" | |
el.width = "100%" | |
document.querySelector(".web-app-body").appendChild(el) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// DLasMD - DOWNLOAD contents as MarkDown.js | |
// old as of 15Jan2025; start using DLasMD-console.save.js | |
// 27Dec2024 1053am NEW promptData rules (Blank or Empty or =FILENAME.EXT defaults to document.body.innerText) | |
// 477 char javascript:void function(){let a=document,b=(b,c=`DL-${+new Date}.md`,d="octet-stream")=>{let e=URL.createObjectURL(new Blob([b],{type:d}));Object.assign(a.createElement("a"),{href:e,download:c}).click(),URL.revokeObjectURL(e)},c=prompt("Enter data to download...\n\n(Blank or Empty or =FILENAME.EXT defaults to document.body.innerText)")?.trim();if(null!=c){let d=c.startsWith("=")&&c.slice(1);b(c.length&&!d?c:a.body.innerText,d?`${d}${d.includes(".")?"":".md"}`:void 0)}}(); | |
let doc=document; | |
let saveDataAsFilenameMime = ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addEventListener("fetch", event => { | |
event.respondWith(handleRequest(event.request)) | |
}) | |
// Our images are immutable, so we can cache them forever. | |
const ONE_YEAR = 31536000; | |
const CACHE_CONTROL = `public, max-age=${ONE_YEAR}, immutable` | |
// One way (the most efficient way) to get the raw images is to fetch them | |
// directly from the underlying Google Cloud Storage bucket. But that requires |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Programmer: @NabiKAZ (https://twitter.com/NabiKAZ) and Thanks for Erfan (https://github.com/ErfanBahramali) | |
// To run Hamster Telegram game on computer. Enter Telegram from this link https://web.telegram.org/k/ | |
// Then open the game. When the "Play on your mobile" error appeared. Copy and paste this code in | |
// your browser console. Both the game is run in the opened window and the address written in the console | |
// can be run in a separate and full-screen browser. | |
// Caution: You are responsible for possible risks such as banning. | |
// The game link: https://t.me/Hamster_kombat_bot/start?startapp=kentId101554083 | |
console.log("Use this address in your browser:", document.getElementsByTagName('iframe')[0].src = document.getElementsByTagName('iframe')[0].src.replace(/(tgWebAppPlatform=)[^&]+/, "$1android")); |