Favstar Pro - Best Tweet Unlocker

Automatically unlocks the Best Tweet on any user's profile.

As of 2018-04-27. See the latest version.

// ==UserScript==
// @name			Favstar Pro - Best Tweet Unlocker
// @name:ru			Favstar Pro - Лучший разблокировать Tweet
// @name:es			Favstar Pro - Mejor desbloqueador de tweets
// @description		Automatically unlocks the Best Tweet on any user's profile.
// @description:ru	Автоматически разблокирует Best Tweet в профиле любого пользователя.
// @description:es	Desbloquea automáticamente el mejor tweet en el perfil de cualquier usuario.
// @namespace		iamMG
// @author			iamMG
// @version			1.0
// @icon			https://i.imgur.com/OUZgZDE.jpg
// @match			https://favstar.fm/users/*
// @match			http://favstar.fm/users/*
// @run-at			document-end
// @license			MIT
// @grant			none
// @copyright		2018, iamMG (https://openuserjs.org/users/iamMG)
// ==/UserScript==

var TopTweetElement = document.querySelector(".redacted");			//page element corresponding to the Best Tweet.
var middle = TopTweetElement.dataset.model.split(/("text":"|","profile_image_url")/);
var TweetContent = middle[2].replace(/\\"/g, '');					//replaces "Gift Favstar Pro!" overlay with the actual tweet content.
TopTweetElement.querySelector(".fs-tweet-text").innerHTML = TweetContent;
document.querySelector(".redacted").classList.remove("redacted");	//removes redaction of the tweet.