Bitcoin Forum

Other => Meta => Topic started by: LoyceMobile on April 06, 2019, 01:07:26 PM



Title: Hide my name
Post by: LoyceMobile on April 06, 2019, 01:07:26 PM
In a public location, I don't like having my name in bold above every page. I'm stuck here for a couple of hours, spending my time reading the forum, but don't want people to see my username (I try not to mix real life and crypto).
Would it be possible to hide the "Hello LoyceMobile" (without logging out)?

As a bonus, this might confuse account farmers and make them post under the wrong name :D


Title: Re: Hide my name
Post by: Xal0lex on April 06, 2019, 01:52:27 PM
In a public location, I don't like having my name in bold above every page. I'm stuck here for a couple of hours, spending my time reading the forum, but don't want people to see my username (I try not to mix real life and crypto).
Would it be possible to hide the "Hello LoyceMobile" (without logging out)?

As a bonus, this might confuse account farmers and make them post under the wrong name :D

Possible write a JavaScript for Greasemonkey/Tampermonkey.


Title: Re: Hide my name
Post by: vit05 on April 06, 2019, 01:54:56 PM
It would be useful if the negative symbol could occult the name too. You could occult your avatar and other things, but not the "hello" message.


Title: Re: Hide my name
Post by: suchmoon on April 06, 2019, 02:00:17 PM
I use this in my post report extension but you can do it as Xal0lex mentioned with some other tools that inject scripts. You can probably just run it in the dev console (Ctrl-Shift-I) manually. Not sure about mobile browsers though.

Code:
try {
    document.getElementById("smfheader").style.visibility = "hidden";
    document.getElementById("hellomember").style.visibility = "hidden";
    document.getElementsByClassName("avatar")[0].style.visibility = "hidden";
} catch { }

Looks like this:

https://meem.link/i/a/jHxqPb.jpg ------ https://meem.link/i/a/nGkLKh.jpg
Edited 2020-11-30 to fix broken images


Title: Re: Hide my name
Post by: jackg on April 06, 2019, 03:03:12 PM
I'm stuck here for a couple of hours

If this is a family occasion then it sounds a lot like me ;D.
I'd just leave it there, I get too many people that notice the "Bitcoin Forum" banner anyway in my case.

Although I need something like what suchmoon has done but for mobile. Next year when I set my server up, I'll do something like that with this forum (potentially just for myself or a select few).


Title: Re: Hide my name
Post by: LoyceV on April 06, 2019, 03:39:29 PM
Possible write a JavaScript for Greasemonkey/Tampermonkey.
I couldn't figure it out on my mobile. I'll see if I can get Tampermonkey to work.

I use this in my post report extension but you can do it as Xal0lex mentioned with some other tools that inject scripts. You can probably just run it in the dev console (Ctrl-Shift-I) manually. Not sure about mobile browsers though.
That's what stopped me indeed, I can't press F12 on mobile.

Quote
Code:
try {
    document.getElementById("smfheader").style.visibility = "hidden";
    document.getElementById("hellomember").style.visibility = "hidden";
    document.getElementsByClassName("avatar")[0].style.visibility = "hidden";
} catch { }

Looks like this:

https://i.snag.gy/jHxqPb.jpg ------ https://i.snag.gy/nGkLKh.jpg
This is exactly what I need!


If this is a family occasion then it sounds a lot like me ;D.
Chasing the kids :D


Title: Re: Hide my name
Post by: Bitcoin_Arena on April 06, 2019, 09:00:23 PM
-snip-
Thank you Suchmoon for the script. This is the kind of thing i needed especially when I am out in a public place but need to discuss in the forum without people having to see my username.

However am not a geek in stuff involving webpages and script injections so i would love you guys to somehow guide me.
Where exactly do i put the code? Is it correctly put as shown in the picture?
Thanks

https://i.imgur.com/6E87CBv.png


Title: Re: Hide my name
Post by: TryNinja on April 06, 2019, 09:05:11 PM
Thank you Suchmoon for the script. This is the kind of thing i needed especially when I am out in a public place but need to discuss in the forum without people having to see my username.

However am not a geek in stuff involving webpages and script injections so i would love you guys to somehow guide me.
Where exactly do i put the code? Is it correctly put as shown in the picture?
Thanks

https://talkimg.com/images/2023/05/14/blobc68ee8f86f974c9a.png

Almost right... Remove everything and paste this:
Code:
// ==UserScript==
// @name     Hide BitcoinTalk Username and Avatar
// @include   https://bitcointalk.org/*
// @version  1
// @grant    none
// ==/UserScript==

try {
    document.getElementById("smfheader").style.visibility = "hidden";
    document.getElementById("hellomember").style.visibility = "hidden";
    document.getElementsByClassName("avatar")[0].style.visibility = "hidden";
} catch { }

I also added a small line on it to only work on BitcoinTalk.


Title: Re: Hide my name
Post by: Bitcoin_Arena on April 06, 2019, 09:52:09 PM
-snip-
Thank you, Works like charm now  ;)
I don't have anymore sMerit left but I really appreciate your help.


Title: Re: Hide my name
Post by: bitart on April 09, 2019, 09:57:14 PM
....
Thanks very much, this is really useful :)
I'm interested in these kind of scripts that makes browsing easier/more private/etc...
So if you have something else (and you want to share it) please let us know :)


Title: Re: Hide my name
Post by: Joel_Jantsen on April 10, 2019, 02:15:49 AM
For anyone like me who likes to stay away from the entire Tapermonkey/Greasemonkey stuff, I wrote my own extension which does that. I could put the extension up in the official Chrome store but it's not necessary since one can inject it locally and tweak the code according to your needs. Follow the steps given below.

1. Create a new directory, name it whatever you want.

2. Create a file manifest.json and add the below code to the file

Code:
{
  "name": "Bitcointalk Hide Name",
  "description": "Hides Bitcointalk Avatar & User-Name",
  "version": "0.1",
  "permissions": ["activeTab", "tabs"],
  "content_scripts": [
    {
      "matches": ["*://bitcointalk.org/*"],
      "js": ["contentscript.js"],
      "run_at": "document_end",
      "all_frames": true
    }
  ],
  "manifest_version": 2
}

3. Create a new file contentscript.js in the same directory and add the following code to the file

Code:
document.getElementById("smfheader").style.visibility = "hidden"
document.getElementById("hellomember").style.visibility = "hidden"
document.getElementsByClassName("avatar")[0].style.visibility = "hidden"


Now, this is your extension which you've to upload in your chrome extensions. Google how to do that or

Quote
Open the Extension Management page by navigating to chrome://extensions.

The Extension Management page can also be opened by clicking on the Chrome menu, hovering over More Tools then selecting Extensions.

Enable Developer Mode by clicking the toggle switch next to Developer mode.

Click the LOAD UNPACKED button and select the extension directory.
https://developer.chrome.com/static/images/get_started/load_extension.png

Should work! You can do much more in the same contentscript.js file.


Title: Re: Hide my name
Post by: DarkStar_ on April 10, 2019, 04:32:59 AM
I couldn't figure it out on my mobile. I'll see if I can get Tampermonkey to work.

On Android phones, Firefox supports custom addons such as Tampermonkey so you can run the script there.


Title: Re: Hide my name
Post by: darklus123 on April 10, 2019, 05:34:25 AM
If you can't find any software solution, you can try to use this "Anti Spy Tempered Glass"
https://www.youtube.com/watch?v=IN01Ow22g88

I haven't personally tried it  so far since I am still planning to change my smart phone. It works very well especially on a very crowded place I've seen one from my friend.