<commit_before>/*
	unfeed.js
	Removes key profile information from the newsfeed
	@author: <NAME>
*/

//Constants
var UPDATE_INTERVAL = 100;
var LONG_UPDATE_INTERVAL = 10000;

//Main profile information removal function
function removeProfileInfo() {
	//Get arrays of nodes
	var profileNames = document.querySelectorAll(".fwb, .profileLink");
	if (typeof profileNames === undefined) {
		return;
	}
	var profilePics = document.getElementsByClassName("_s0 _5xib _5sq7 _rw img");
	var commentPics = document.getElementsByClassName("UFIImageBlockImage");
	var commentNames = document.getElementsByClassName("UFICommentActorName");

	//Remove all profile pictures in the viewport
	for (var i = 0; i < profilePics.length; i++) {
		profilePics[i].remove();
	}

	//Remove all commenter pictures in the viewport
	for (var i = 0; i < commentPics.length; i++) {
		commentPics[i].remove();
	}

	//Replace all profile names in the view port with "Someone".
	for (var i = 0; i < profileNames.length; i++) {
		profileNames[i].innerHTML = "Someone";
	}

	//Replace all commenter names in the view port with "Someone".
	for (var i = 0; i < commentNames.length; i++) {
		commentNames[i].innerHTML = "Someone";
	}
}

///////////////
//MAIN SCRIPT//
///////////////

//Initial removal on load
removeProfileInfo();
//Remove ticker in side-bar
var ticker = document.getElementsByClassName("ticker_stream");
ticker[0].remove();
//Attempt to remove more information on UPDATE_INTERVAL
setInterval(removeProfileInfo, UPDATE_INTERVAL);
<commit_msg>make unfeed.js indentation 2 spaces<commit_after>/*
  unfeed.js
  Removes key profile information from the newsfeed
  @author: <NAME>
*/

//Constants
var UPDATE_INTERVAL = 100;
var LONG_UPDATE_INTERVAL = 10000;

//Main profile information removal function
function removeProfileInfo() {
  //Get arrays of nodes
  var profileNames = document.querySelectorAll(".fwb, .profileLink");
  if (typeof profileNames === undefined) {
    return;
  }
  var profilePics = document.getElementsByClassName("_s0 _5xib _5sq7 _rw img");
  var commentPics = document.getElementsByClassName("UFIImageBlockImage");
  var commentNames = document.getElementsByClassName("UFICommentActorName");

  //Remove all profile pictures in the viewport
  for (var i = 0; i < profilePics.length; i++) {
    profilePics[i].remove();
  }

  //Remove all commenter pictures in the viewport
  for (var i = 0; i < commentPics.length; i++) {
    commentPics[i].remove();
  }

  //Replace all profile names in the view port with "Someone".
  for (var i = 0; i < profileNames.length; i++) {
    profileNames[i].innerHTML = "Someone";
  }

  //Replace all commenter names in the view port with "Someone".
  for (var i = 0; i < commentNames.length; i++) {
    commentNames[i].innerHTML = "Someone";
  }
}

///////////////
//MAIN SCRIPT//
///////////////

//Initial removal on load
removeProfileInfo();
//Remove ticker in side-bar
var ticker = document.getElementsByClassName("ticker_stream");
ticker[0].remove();
//Attempt to remove more information on UPDATE_INTERVAL
setInterval(removeProfileInfo, UPDATE_INTERVAL);

{'fraction_non_alphanumeric': 0.13598191214470284, 'fraction_numerical': 0.011304909560723515, 'mean_word_length': 3.9790996784565915, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5465105', 'n_tokens_mistral': 993, 'n_tokens_neox': 932, 'n_words': 290}