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.
// Huawei B525s-23a router's 'Domain Name Filter' filler script that allows users to automatically fill Domain Name Filter table with values from a normal hostname list | |
/* | |
# Blacklist example: | |
abtest.mistat.intl.xiaomi.com | |
abtest.mistat.xiaomi.com | |
account.preview.n.xiaomi.net | |
account.xiaomi.com | |
ad1.xiaomi.com | |
ad.mi.com |
// ==UserScript== | |
// @name KissManga - AdBlock Tampered Cloudflare Challenge Bypass | |
// @version 0.11 | |
// @author Manciuszz | |
// @match *://kissmanga.com/* | |
// @grant unsafeWindow | |
// ==/UserScript== | |
(function() { | |
'use strict'; |
// 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": { |
{ | |
let Module = (function() { | |
let privateMethod1 = function() { | |
console.log("FOO"); | |
}; | |
let privateMethod2 = function() { | |
console.log("BAR"); | |
}; |
#NoEnv | |
#SingleInstance force | |
#InstallKeybdHook | |
#KeyHistory 500 | |
ListLines Off | |
SetKeyDelay,-1, 1 | |
SetControlDelay, -1 | |
SetMouseDelay, -1 | |
SetWinDelay,-1 |
#NoEnv | |
; #Warn | |
#UseHook | |
#MaxThreadsPerHotkey 2 | |
#MaxHotkeysPerInterval 99000000 | |
#HotkeyInterval 99000000 | |
#KeyHistory 0 | |
#Persistent | |
#SingleInstance force | |
ListLines Off |
{ // 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... | |
} |
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.
// ==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* |
// ==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) { |