Skip to content

Instantly share code, notes, and snippets.

View manciuszz's full-sized avatar

MMWorks manciuszz

View GitHub Profile
@manciuszz
manciuszz / kissMangaEnhancements.user.js
Last active February 21, 2019 23:58
Does not being able to read manga on KissManga.com just by using your keyboard bother you? Well this quick script will fix that by enabling to change chapters by using keyboard left and right arrow keys while enabling support for W/S scrolling for the left handed people.
// ==UserScript==
// @name KissManga Quick Enhancements
// @author Manciuszz
// @version 0.1
// @match *://kissmanga.com/Manga/*/*
// ==/UserScript==
(function() {
'use strict';
@manciuszz
manciuszz / unloopTheTube.js
Last active April 24, 2019 23:10
Unloop The Tube. Tired of YouTube autoplay suggested videos being stuck on loop? Well look no further, because this neat little script will make sure that your next autoplay video will never be the same! (...literally)
// ==UserScript==
// @name Unloop The Tube.
// @author Manciuszz
// @version 1.01
// @match https://www.youtube.com/*
// @grant unsafeWindow
// @updateURL https://gist.githubusercontent.com/manciuszz/eef680b89bfe04e6c293b88cb3b10d08/raw
// ==/UserScript==
(function(window) {
@manciuszz
manciuszz / horribleSeedrLinkr.js
Last active June 10, 2019 18:09
A script that allows to download HorribleSubs shows using Seedr.cc service just by clicking on Magnet/Torrent links.
// ==UserScript==
// @name HorribleSubs to Seedr Linker
// @description A script that allows to download HorribleSubs shows using Seedr.cc service just by clicking on Magnet/Torrent links.
// @author Manciuszz
// @version 0.2
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.18.2/babel.js
// @require https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.16.0/polyfill.js
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.slim.min.js
// @match https://horriblesubs.info/shows/*
// @match https://www.seedr.cc/files*
@manciuszz
manciuszz / asm_autoClicker.js
Last active October 1, 2019 13:50
Emscripten's WebAssembly games non-intrusive auto-clicker by hijacking "JSEvents" object event handlers via browser debugger.
{ // For copy/paste purpose...
/* Usually, in most emscripten games "JSEvents" interface is private, therefore we expose it to global scope by using debugger (i.e Developer Tools)... */
if (false) {
/* Note: unityWebView.game.Module could be named differently (based on a game), for example like "gameInstance.Module" etc.. */
// Copy this to the debugger and execute to stop at the breakpoint, where we will expose "JSEvents" to global scope.
debug(unityWebView.game.Module.SetFullscreen);
unityWebView.game.Module.SetFullscreen();
undebug(unityWebView.game.Module.SetFullscreen);
//window.JSEvents = JSEvents; // expose this...
}
@manciuszz
manciuszz / Things I Learnt The Hard Way.md
Last active October 7, 2019 17:40
Things I Learnt The Hard Way (in 30 Years of Software Development) by Julio Biason

Things I Learnt The Hard Way (in 30 Years of Software Development)

34 minute read
Published: 2019-06-10

This is a cynical, clinical collection of things I learnt in 30 years working with software development.

Again, some things are really cynical, others are long observations on different jobs.

Software Development

@manciuszz
manciuszz / survivalMacros.ahk
Created October 20, 2019 15:47
Android mobile game "Survival Heroes" non-intrusive macros made wth AutoHotKey for Tencent's "Gameloop" emulator ran on 1280x720 resolution.
#NoEnv
; #Warn
#UseHook
#MaxThreadsPerHotkey 2
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#KeyHistory 0
#Persistent
#SingleInstance force
ListLines Off
@manciuszz
manciuszz / WindowHelper.ahk
Created December 12, 2019 17:25
An AutoHotKey script that allows fast window moving/resizing/minimizing/maximizing via mouse keys Mouse5/Mouse4/Wheeldown/WheelUp
#NoEnv
#SingleInstance force
#InstallKeybdHook
#KeyHistory 500
ListLines Off
SetKeyDelay,-1, 1
SetControlDelay, -1
SetMouseDelay, -1
SetWinDelay,-1
@manciuszz
manciuszz / webnovelFullSearch.js
Last active January 17, 2020 23:34
Webnovel.com - Preload and Sort search results without scrolling.
// ==UserScript==
// @name WebNovel.com | Full Search
// @description Sort your search results by chapter descending order of chapter number.
// @author Manciuszz
// @version 0.906
// @match https://www.webnovel.com/category*
// @match https://www.webnovel.com/search*
// @match https://www.webnovel.com/tag*
// @match https://www.webnovel.com/ranking*
// @match https://www.webnovel.com/profile*
@manciuszz
manciuszz / module_pattern.js
Last active February 10, 2020 18:42
Javascript Module Pattern that returns a function (instead of an object) which contains other functions...
{
let Module = (function() {
let privateMethod1 = function() {
console.log("FOO");
};
let privateMethod2 = function() {
console.log("BAR");
};
@manciuszz
manciuszz / cf_post_challenge.js
Created February 17, 2020 23:55
The new CloudFlare JS Challenge via POST request minimal solution.
// Before executing, make a break point on "#jschl_answer" element so when it gets a value, debugger kicks in...
(function() {
let form = document.querySelector("#challenge-form");
if (!form)
return console.log("No JS Challenge detected!");
let request = function(params, callbackFn) {
fetch(params.requestURL, {
"method": "POST",
"headers": {