Skip to content

Instantly share code, notes, and snippets.

@sudogem
Last active September 20, 2023 14:07
Show Gist options
  • Save sudogem/3ed55a3c1de6de62756d8e54338af16e to your computer and use it in GitHub Desktop.
Save sudogem/3ed55a3c1de6de62756d8e54338af16e to your computer and use it in GitHub Desktop.
This script will hide the TradingView logo or any custom logo
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.investagrams.com/Chart/PSE:*
// @icon https://www.google.com/s2/favicons?domain=investagrams.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
setInterval(function(){
$("div[data-ng-controller=intrusiveShowmanUserControlController]").css("display", "none");
$("div[data-ng-controller=popupAdsUserControlController]").css("display", "none");
$("div.modal-backdrop").css("display", "none");
console.log("hide ads");
}, 2000);
})();
/* ================================================================= */
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.investagrams.com/Stock/*
// @icon https://www.google.com/s2/favicons?domain=investagrams.com
// @grant none
// ==/UserScript==
(function() {
'use strict';
setInterval(function(){
$("div[data-ng-controller=intrusiveShowmanUserControlController]").css("display", "none");
$("div[data-ng-controller=popupAdsUserControlController]").css("display", "none");
$("div.modal-backdrop").css("display", "none");
console.log("hide ads");
}, 2000);
})();
/* ================================================================= */
/* Greasemonkey script */
/* This script will hide the TradingView logo or any custom logo */
setInterval(function() {
/* hide the logo */
document.getElementsByTagName("iframe")[0].contentWindow.document.querySelector('div > .onchart-custom-logo').innerHTML="";
/* hide the ads */
document.getElementById("toast-container").style.visibility="hidden";
}, 1000);
/* hide investagram popup */
setInterval(function() {
$("div[data-ng-controller=popupAdsUserControlController]").css("display", "none")
}, 1000);
@nixonvision77
Copy link

seems like it doesn't work now

@ekramasif
Copy link

It doesn't work now!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment