Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Duolingo Profile Overhaul - Steak Mode (BIG STEAK)
- // @namespace https://yourdomain.example
- // @version 1.8
- // @description Replace profile data, icons, and boost the Minecraft steak size
- // @match https://www.duolingo.com/profile/KKuru2014
- // @grant none
- // ==/UserScript==
- (function () {
- 'use strict';
- const IMAGE_REPLACEMENTS = {
- 'https://d35aaqx5ub95lt.cloudfront.net/images/leagues/afe5c7067cd5fb7de936d3928ea7add6.svg':
- 'https://yt3.googleusercontent.com/KWeSfzemtXQ6OejCwnx68UMlAbBsAuanFjrd4QjcuFyXOGVPgRPdbMG8x0afuHxuXPb3XodziQ=s160-c-k-c0x00ffffff-no-rj',
- 'https://d35aaqx5ub95lt.cloudfront.net/images/7a24dbe6c243d2bbf8b6c8aad73dc941.svg':
- 'https://yt3.googleusercontent.com/6p90YZQqg8nZAYFWA-L-gukpPopgQH8RDfUxTPSVxfyHQOApXXmGMVkzApeIZ8z9PjlHz13v=s160-c-k-c0x00ffffff-no-rj'
- };
- function replaceStuff() {
- // Replace text
- const walker = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT);
- let node;
- while ((node = walker.nextNode())) {
- if (node.nodeValue.includes('KKuru2014')) {
- node.nodeValue = node.nodeValue.replace(/KKuru2014/g, 'Anonymous');
- }
- if (node.nodeValue.includes('M. Kemal K.')) {
- node.nodeValue = node.nodeValue.replace(/M\. Kemal K\./g, 'Name Hidden');
- }
- }
- // Replace XP with HIDDEN
- document.querySelectorAll('h4.-TMd4').forEach(el => {
- if (/^\d+$/.test(el.textContent.trim())) {
- el.textContent = 'HIDDEN';
- }
- });
- // Replace follower count
- document.querySelectorAll('span._3KQMU._9lHjd').forEach(el => {
- if (/^\d+[\s]?Followers$/.test(el.textContent.trim())) {
- el.textContent = '11K Followers';
- }
- });
- // Replace images and scale steak
- document.querySelectorAll('img').forEach(img => {
- Object.entries(IMAGE_REPLACEMENTS).forEach(([original, replacement]) => {
- if (img.src.includes(original)) {
- img.src = replacement;
- // BIGGER Minecraft steak
- if (replacement.includes('6p90YZQqg8nZAYFWA')) {
- img.style.maxWidth = '120px';
- img.style.maxHeight = '120px';
- img.style.objectFit = 'contain';
- img.style.display = 'block';
- img.style.margin = '0 auto';
- }
- }
- });
- });
- }
- setInterval(replaceStuff, 1); // Update every 10ms
- })();
Advertisement
Add Comment
Please, Sign In to add comment