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 Big A r/place Template | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the canvas! | |
// @author oralekin, LittleEndu, ekgame, Mr. Quack | |
// @match https://hot-potato.reddit.com/embed* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.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
import okhttp3.Call | |
import okhttp3.Callback | |
import okhttp3.Response | |
import java.io.IOException | |
import java.util.concurrent.CompletableFuture | |
fun Call.executeAsync(): CompletableFuture<Response> { | |
val future = CompletableFuture<Response>() | |
enqueue(object : Callback { | |
override fun onResponse(call: Call, response: Response) { |