This file contains 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 argonmod = () => { | |
var Module;if(!Module)Module=(typeof Module!=="undefined"?Module:null)||{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key)){moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_WEB=false;var ENVIRONMENT_IS_WORKER=false;var ENVIRONMENT_IS_NODE=false;var ENVIRONMENT_IS_SHELL=false;if(Module["ENVIRONMENT"]){if(Module["ENVIRONMENT"]==="WEB"){ENVIRONMENT_IS_WEB=true}else if(Module["ENVIRONMENT"]==="WORKER"){ENVIRONMENT_IS_WORKER=true}else if(Module["ENVIRONMENT"]==="NODE"){ENVIRONMENT_IS_NODE=true}else if(Module["ENVIRONMENT"]==="SHELL"){ENVIRONMENT_IS_SHELL=true}else{throw new Error("The provided Module['ENVIRONMENT'] value is not valid. It must be one of: WEB|WORKER|NODE|SHELL.")}}else{ENVIRONMENT_IS_WEB=typeof window==="object";ENVIRONMENT_IS_WORKER=typeof importScripts==="function";ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof require==="function"&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_N |
This file contains 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
<?xml version="1.0" encoding="utf-8" standalone="yes"?> | |
<KeePassFile> | |
<Meta> | |
<Generator>KdbxWeb</Generator> | |
<SettingsChanged>2023-03-29T01:42:17Z</SettingsChanged> | |
<DatabaseName>title</DatabaseName> | |
<DatabaseNameChanged>2023-03-29T01:42:17Z</DatabaseNameChanged> | |
<DatabaseDescription /> | |
<DatabaseDescriptionChanged>2023-03-29T01:42:17Z</DatabaseDescriptionChanged> | |
<DefaultUserName /> |
This file contains 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
// Copilot told me, it found this code somewhere in one of 0xflotus repos | |
// thx btw! | |
export const cachedFetch = | |
(cache: Cache) => (input: string | Request | URL, init?: RequestInit) => { | |
const request = new Request(input, init); | |
return cache.match(request).then((response) => { | |
if (response) { | |
return response; | |
} | |
return fetch(request).then((response) => { |
This file contains 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
// Polyfill type declaration to use service worker types in a deno environment | |
interface FetchEvent extends Event { | |
request: Request; | |
respondWith(response: Promise<Response> | Response): void; | |
} | |
interface GlobalEventHandlersEventMap { | |
fetch: FetchEvent; | |
} |
This file contains 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
/** | |
* A mock cache implementation for use in tests. | |
* @see https://developer.mozilla.org/en-US/docs/Web/API/Cache | |
* | |
* Developed by Mario Stöcklein | |
* @see https://gist.github.com/mstoecklein/dd7a62cd815e0258d3ee129803d0d707 | |
*/ | |
export class MockCache implements Cache { | |
private cache: Map<Request, Response> = new Map(); |
This file contains 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 Calender Graph Hack | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Just for fun | |
// @author Mario Stöcklein (https://github.com/mstoecklein) | |
// @match https://github.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=github.com | |
// @grant none | |
// ==/UserScript== |
This file contains 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 ChatGPT Conversation Download Button | |
// @description Download a conversation with ChatGPT | |
// @author Mario Stöcklein (https://github.com/mstoecklein) | |
// @namespace https://chat.openai.com/ | |
// @match https://chat.openai.com/* | |
// @version 1 | |
// ==/UserScript== | |
// https://chat.openai.com/backend-api/conversations?offset=0&limit=20 |