Skip to content

Instantly share code, notes, and snippets.

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');
@Gesugao-san
Gesugao-san / dump.js
Last active May 5, 2024 21:26
Dump table content from website to local machine (csv).
(() => {
return console.log("Moved to https://github.com/GesuDatasGContactsProject/dump_html_table");
})();
@0xdevalias
0xdevalias / music-apis-and-dbs.md
Last active May 5, 2024 21:25
A collection of music APIs, databases, and related tools
diff -U 3 -w -d -r -x .git -x Binaries -x Intermediate -- "a/RootMotionExtractor/RootMotionExtractor.uplugin" b/RootMotionExtractor/RootMotionExtractor.uplugin
--- "a/RootMotionExtractor/RootMotionExtractor.uplugin" 2023-04-09 11:17:42.466226109 -0700
+++ b/RootMotionExtractor/RootMotionExtractor.uplugin 2023-04-09 16:44:40.272197835 -0700
@@ -10,7 +10,7 @@
"DocsURL": "",
"MarketplaceURL": "com.epicgames.launcher://ue/marketplace/content/4b450f82f56040338a4d5744b3eda4f9",
"SupportURL": "http://puglifestudio.com/discord",
- "EngineVersion": "4.27.0",
+ "EngineVersion": "5.0.0",
"CanContainContent": false,
@umardx
umardx / Pi3_as_WiFi_AP_Bridge.md
Last active May 5, 2024 21:24
Using a Raspberry Pi 3 as a Wifi access point and bridge

The specificity of my setup, is that the Raspberry won’t be a router but a bridge. DHCP is thus delegated to the main ADSL router and all devices connected to the AP will appear on the same network than other devices. The instructions below are based on a fresh Raspbian lite install so that it can be reproduced easily.

Install the required packages :

$ sudo apt-get install -y bridge-utils hostapd

To create a bridge, we need to enable ip_forward in the kernel, for that, edit /etc/sysctl.conf and remove comment (#) from the following line :