Skip to content
TORNLIFE More

[Userscript] Hide level up stuff

Started by Ahab [1735214] on in Tools & Userscripts.

9 replies · 630 views · thread synced · 5 days ago · View on torn.com
About this thread

Posts archived: 10 / 10 posts (100%) · the total is Torn's reply count + the opening post at the last fetch

Counted by TornLife from the archived posts.

Archived posts
10
Discussion span
→
People posting
5
Likes on archived posts
3
Authority score
51 / 100
Historical score
35 / 100
Story score
42 / 100
Engagement score
58 / 100
Ahab [1735214]

Hides the upgrade link and the congratulations blurb (hopefully that is all)

[image: puu.sh]
[image: puu.sh]


[image: i.imgur.com]



For use with tampermonkey (chrome) / greasemonkey (firefox) etc

// ==UserScript==
// @name Torn: Hide level up links
// @description Hide level up links
// @author Ahab
// @include *.torn.com/*
// @version 1.1
// @run-at document-end
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js
// ==/UserScript==

if ($('.msg.right-round:contains("Congratulations!")').length>0) {
$(".info-msg-cont.green.border-round.m-top10").hide();
}

function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}

var hide = [];
hide.push('#pointsLevel { display: none ! important}');

addGlobalStyle(hide.join(''));


Draco [1648828]

Nice script R+

It also hides the congratulations dialogues on the Hall of Fame page and the job page (if you can be promoted), but that's no biggie.
Ahab [1735214]

I know it was in my script thread but it doesn't hide the congrats blurb which is why I made this.....