Guessing that's about 1/4 ounce. Got that slight yellow tinge. I bet it is really good shit.
>you are a dingus
It's a song. Good song. Dumb lyrics.
//UserScript
// @name Block Mr. Pig and Meme Format on 8kun
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Blocks posts by Mr. Pig and memes with white cat format on 8kun
// @author Grok
// @match ://8kun.top/
// @grant none
///UserScript
(function() {
'use strict';
// Function to block posts by Mr. Pig and detect meme format
function blockMrPigAndMemes() {
// Select all posts on the page
const posts = document.querySelectorAll('div.post');
posts.forEach(post ={
// Check for Mr. Pig's name in the post
const nameElement = post.querySelector('span.name');
const hasMrPig = nameElement && nameElement.textContent.trim() === 'Mr. Pig';
// Check for meme format: look for images and specific text patterns
const image = post.querySelector('img.post-image');
const postText = post.querySelector('div.post-message');
const hasMemeText = postText && /WELL ANGRY INCH|APPARENTLY MAKE|AMERICA WINNING/i.test(postText.textContent);
// If the post is by Mr. Pig or matches the meme format, hide it
if (hasMrPig || (image && hasMemeText)) {
post.style.display = 'none';
console.log('Blocked a post by Mr. Pig or matching meme format');
}
});
}
// Run the function on page load
blockMrPigAndMemes();
// Observe for dynamically loaded posts (e.g., when scrolling or new replies)
const observer = new MutationObserver((mutations) ={
mutations.forEach(() ={
blockMrPigAndMemes();
});
});
// Start observing the document for changes
observer.observe(document.body, { childList: true, subtree: true });
})();
Red text should have the appropriate = instead
Will the Script Work in "User JS"?
Yes, the script I provided can work in the "User JS" section, but it needs a slight modification to remove the userscript metadata (e.g., // @match) since this isnโt running through a userscript manager like Tampermonkey. The "User JS" section on 8kun will automatically run the script on the site, so the core logic will work.
Hereโs the modified script for 8kunโs "User JS" section:
javascript
(function() {
'use strict';
// Function to block posts by Mr. Pig and detect meme format
function blockMrPigAndMemes() {
// Select all posts on the page
const posts = document.querySelectorAll('div.post');
posts.forEach(post ={
// Check for Mr. Pig's name in the post
const nameElement = post.querySelector('span.name');
const hasMrPig = nameElement && nameElement.textContent.trim() === 'Mr. Pig';
// Check for meme format: look for images and specific text patterns
const image = post.querySelector('img.post-image');
const postText = post.querySelector('div.post-message');
const hasMemeText = postText && /WELL ANGRY INCH|APPARENTLY MAKE|AMERICA WINNING/i.test(postText.textContent);
// If the post is by Mr. Pig or matches the meme format, hide it
if (hasMrPig || (image && hasMemeText)) {
post.style.display = 'none';
console.log('Blocked a post by Mr. Pig or matching meme format');
}
});
}
// Run the function on page load
blockMrPigAndMemes();
// Observe for dynamically loaded posts (e.g., when scrolling or new replies)
const observer = new MutationObserver((mutations) ={
mutations.forEach(() ={
blockMrPigAndMemes();
});
});
// Start observing the document for changes
observer.observe(document.body, { childList: true, subtree: true });
})();