>>935918508// ==UserScript==
// @name 4chan Thread Title Replacer
// @namespace buh
// @version 1.0
// @description Changes all thread titles on 4chan to a custom string
// @author You
// @match *://boards.4chan.org/*
// @match *://boards.4channel.org/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Set your custom title here
const customTitle = "built for bbc";
// Function to replace thread titles
function replaceTitles() {
// Select all thread subjects
const threadTitles = document.querySelectorAll('.subject, .teaser-subject');
threadTitles.forEach(title => {
if (title.textContent !== customTitle) {
title.textContent = customTitle;
}
});
}
// Run immediately
replaceTitles();
// Also run when new content loads (for infinite scroll boards)
const observer = new MutationObserver(replaceTitles);
observer.observe(document.body, {
childList: true,
subtree: true
});
})();