Skip to content

Instantly share code, notes, and snippets.

;Abiotic_Factor_share_all.au3 by
;Создан при помощи ISN AutoIt Studio v. 1.16
;*****************************************
;Make this script high DPI aware
;AutoIt3Wrapper directive for exe files, DllCall for au3/a3x files
#AutoIt3Wrapper_Res_HiDpi=y
If not @Compiled then DllCall("User32.dll", "bool", "SetProcessDPIAware")
Opt("GUIOnEventMode", 1)
@Gesugao-san
Gesugao-san / openapi_byond.yml
Last active May 5, 2024 21:28
Swagger UI OpenAPI for http://byond.com. How to use: copy content of this file, and insert in https://editor.swagger.io. For working preview use https://mybrowseraddon.com/access-control-allow-origin.html!
openapi: 3.0.0
info:
version: "1.0"
title: BYOND API
description: "Website offer a free API that provides some info for a players and about players, hubs and worlds."
termsOfService: https://www.byond.com/TOS
contact:
name: SS13HUB Team
url: http://discord.gg/HMwbBZyEum
  1. Install Python 3
  2. Install and use mod Map Writer
  3. Download the file
  4. Type this:

CLS && py mapwriter_sorter.py

@Gesugao-san
Gesugao-san / _parsing.js
Last active May 5, 2024 21:27
SS13 hub parsing. Inspured by https://ss13stats.skullnet.me but it's js, for D3 in future.
// Run in Google Chrome Console. MIT Licence.
// For "http://byond.com/games/Exadv1/SpaceStation13?format=text"
function main(_input = false) {
if ((_input === false) || (_input === null) || (_input == '')) {return console.error("User cancelled the prompt.");}
console.clear();
if (verbose) console.debug(['PROCESSING START']);
let current_entry = '', _data = {}; // let tabbed = [], notTabbed = [];
//_input = _input.split('\r\n');
//if (debug) console.log('_input:', _input);
for (var i = 0; i < _input.length; i++) {
let buttLoot, buttLeave, _debug = Boolean(1);
let _store = Array.from(document.querySelectorAll('*')).find(e => e.__vue__).__vue__.$store;
// Seach for buttons to click
// https://stackoverflow.com/a/67398903/8175291
function querySelectorIncludesText(selector, text) {
if ((!selector) || (!text)) return console.error('querySelectorIncludesText error!');
return Array.from(document.querySelectorAll(selector))
.find(el => el.textContent.includes(text));
}
// Run away if player can be killed in two successfully hits.
@Gesugao-san
Gesugao-san / index.js
Last active May 5, 2024 21:26
Discord - get messages' authors
// https://stackoverflow.com/questions/6991494/
javascript: (function() {
console.clear();
let unique_only = Boolean(1);
let arr = new Array();
let messages = document.querySelectorAll('[id ^= "chat-messages-"]');
Array.prototype.forEach.call(messages, callback);
function callback(element, i) {
let avatar = element.querySelector('[class ^= "avatar-"]'); // [aria-hidden ^= "true"];
// ('[src ^= "https://cdn.discordapp.com/avatars/*]');
@Gesugao-san
Gesugao-san / Open in WBM (v5).js
Last active May 5, 2024 21:26
Chrome Bookmarklet — Open in WBM (ver. 5)
// ==UserScript==
// @name Open in WBM (v5)
// @namespace https://gist.github.com/Gesugao-san/5d6b5d791dc941d80b5837e83e57b963
// @version 0.1
// @description try to take over the world!
// @author Gesugao-san
// @match *//*/*
// @include *
// @exclude file://*
// @icon https://www.google.com/s2/favicons?sz=64&domain=stackoverflow.com
@Gesugao-san
Gesugao-san / Open in WBM (v4).js
Last active May 5, 2024 21:26
Chrome Bookmarklet — Open in WBM (ver. 4) (BROKEN)
// ==UserScript==
// @name Open in WBM (v4)
// @namespace https://gist.github.com/Gesugao-san/aa6c84ba16d01fc12b176e7e03799de9
// @version 0.1
// @description try to take over the world!
// @author Gesugao-san
// @match https://stackoverflow.com/questions/28833403/jquery-ajax-sending-post-with-values-from-inputs-with-tampermonkey
// @icon https://www.google.com/s2/favicons?sz=64&domain=stackoverflow.com
// @grant GM_xmlhttpRequest
// ==/UserScript==
@Gesugao-san
Gesugao-san / get_links_from_site.js
Last active May 5, 2024 21:26
Get all the src and href attributes of a site, insert into console or make markbooklet
this.document.querySelectorAll('[class^="member"],[class^="container"],[class^="clickable"],[data-list-item-id^="members"]')[0];
this.document.querySelectorAll('[class^="userInfoBody"]')[0].innerText.split('\n');