User talk:Cliffsend

From Soyjak Wiki, The Free Soycyclopedia
Jump to navigationJump to search

newchad

update the statistics plot image

w

CLIFFSEND DO THIS

lol

glad you like my edits on the five board thing or something

4cuck.org

I have a userscript that automatically changes every instance of 4chan to 4cuck, which is probably what happened. --Angeleno (talk) 16:36, 12 June 2023 (EST)

// ==UserScript==
// @name 4cuck replacer
// @namespace http://soyjak.party
// @version 1.0
// @description Replaces the word "4chan" with "4cuck" on web pages
// @match *://*/*
// @grant none
// ==/UserScript==

(function() {
  'use strict';

  const findAndReplace = () => {
    const elements = document.getElementsByTagName('*');
    for (let i = 0; i < elements.length; i++) {
      const element = elements[i];
      for (let j = 0; j < element.childNodes.length; j++) {
        const node = element.childNodes[j];

        if (node.nodeType === 3) { // Text node
          const text = node.nodeValue;
          const replacedText = text.replace(/4chan/gi, '4cuck'); 
          if (replacedText !== text) {
            element.replaceChild(document.createTextNode(replacedText), node);
          }
        }
      }
    }
  };

  const replaceImageURL = () => {
    if (window.location.hostname === '4chan.org') {
      var images = document.getElementsByTagName('img');
      for (var i = 0; i < images.length; i++) {
        var img = images[i];
        var originalSrc = img.getAttribute('src');
        if (originalSrc && originalSrc.indexOf('//s.4cdn.org/image/fp/logo-transparent.png') !== -1) {
          var newSrc = originalSrc.replace('//s.4cdn.org/image/fp/logo-transparent.png', 'https://files.catbox.moe/ril2hr.png');
          img.setAttribute('src', newSrc);
        }
      }
    }
  };

  findAndReplace(); // Initial replacement

  // Perform replacement on page updates
  const observer = new MutationObserver(findAndReplace);
  observer.observe(document.body, {
    childList: true,
    subtree: true,
    characterData: true
  });

  replaceImageURL(); // Replace image URL on 4chan.org
})();
geg --Cliffsend (talk) 16:59, 12 June 2023 (EST)

Thrembo

Appears to be because of mass redirect edits, which in the past has indicated vandalism. They seem to have been good faith redirects from just a glance, so have Angeleno review the Thrembo situation as it looks like a Janny false positive. --MataDesktop (talk) 08:42, 6 September 2023 (EST)

To me, they seemed in good faith too. --Cliffsend (talk) 08:43, 6 September 2023 (EST)

Stats plot

Do you still have the data from your stats plot image? IForgotMyPassword (talk) 07:34, 7 September 2023 (EST)

Sorry for the delay, not sure if you're still here. It's impressive that you traced my plot and wrote a similar scraper from the ground up. I was aware you did this and aware of this request. For some reason, I did nothing.
https://soyjak.download/f.php?h=21dGN64O&d=1
The contents of the ZIP file are:
frontstats.tsv
Snapshots of the numbers on the frontpage of the site. I had a scraping script on a timer starting around August 2022, and stopped around December 2022.
waybackstats.tsv
Snapshots sourced from the Wayback Machine snapshots that existed for the soyjak.party frontpage. This one can go a lot farther back, to the earliest available snapshot. I apparently stopped scraping snapshots in Sep 2022. Also, as a consequence of soyjak.party getting tragically excluded from the wayback machine near the end of last year, it is impossible to gather this data again.
The files have the same format, with the first column "Snapshot Date" being a timestamp (UTC 0) in UNIX format like familiar imageboard filenames. The two data sources are combined to render the plot. I hope this is of use to someone. --Cliffsend (talk) 07:42, 16 January 2024 (EST)

Welcome back

Found myself pressing the Random page button absentmindedly --Cliffsend (talk) 07:05, 16 January 2024 (EST)