Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
~Coxy
Dec 9, 2003

R.I.P. Inter-OS Sass - b.2000AD d.2003AD
Is there any way to get rid of an account in this list?



I never want to sign in to this tenant using the "connected to windows" account.

Greasemonkey script or browser addon would also be fine.

Adbot
ADBOT LOVES YOU

~Coxy
Dec 9, 2003

R.I.P. Inter-OS Sass - b.2000AD d.2003AD
If it's a policy it needs to apply to a single profile only, I'm afraid, so that's probably not going to work.

~Coxy
Dec 9, 2003

R.I.P. Inter-OS Sass - b.2000AD d.2003AD

~Coxy posted:

Is there any way to get rid of an account in this list?



I never want to sign in to this tenant using the "connected to windows" account.

Greasemonkey script or browser addon would also be fine.

I finally got sick enough of this to write a userscript.



code:
// ==UserScript==
// @name        Black out unwanted microsoft account
// @namespace   Violentmonkey Scripts
// @match       https://login.microsoftonline.com/*/oauth2/authorize*
// @require  http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @require  https://gist.github.com/raw/2625891/waitForKeyElements.js
// @grant       none
// @version     1.0
// @author      -
// @description 01/02/2024, 08:46:33
// ==/UserScript==

waitForKeyElements ("#tilesHolder", actionFunction2);

function actionFunction2 (jNode) {
  var tilesHolder = $('#tilesHolder');
  var buttonDiv = tilesHolder.find('div[data-test-id="WINDOWS_MS_ACCT@CONTOSO.COM"]');
  if (buttonDiv.length === 1)
  {
    buttonDiv[0].setAttribute('style',"background-color: black;");

    var imgBadge = buttonDiv.find('img[class="tile-img"]');
    if (imgBadge.length === 1)
    {
      imgBadge[0].remove();
    }
  }

}

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply