Greasy Fork is available in English.

TurboFicks

Fixes broken links on Turbobricks

// ==UserScript==
// @name         TurboFicks
// @namespace    http://turbobricks.com/
// @version      262
// @description  Fixes broken links on Turbobricks
// @author       pinguin
// @license      gnu gpl
// @include      *turbobricks.com*
// @require      http://code.jquery.com/jquery-latest.js
// ==/UserScript==

let lookup_table = {
	'https://turbobricks.com/data/avatars/m/12/12241.jpg?1727919708': 'https://i.imgur.com/Ld9eVyS.gif',
};
for (let image of document.getElementsByTagName('img')) {
	for (let query in lookup_table) {
		if (image.src == query) {
			image.src = lookup_table[query];
		}
	}
}

 const thread = /\?t\=/ ;
 const post = /\?p\=/ ;
 const regex = /.*show(?:post|thread)\.php\?(?:p|t)\=([0-9]+).*/i;

if (thread.exec(window.location.href)) {
    // make thread url;
    window.location.href = window.location.href.replace(regex, "https://turbobricks.com/index.php?threads/$1");
}
else if (post.exec(window.location.href)) {
    // make post url
    window.location.href = window.location.href.replace(regex, "https://turbobricks.com/index.php?posts/$1");
}