Created
August 10, 2018 13:32
-
-
Save scolton99/7831e3aa024c11e6b7e845e3d03cc97b to your computer and use it in GitHub Desktop.
Generating a textual list of assignment groups in BMC FootPrints
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
let referralBox = document.getElementsByName("fieldArea0")[0]; | |
let groups = referralBox.querySelectorAll("option"); | |
let txt = ""; | |
groups.forEach( | |
function (e) { | |
if (e.textContent === "+Individual Users") | |
return; | |
txt += e.textContent.substr(1) + "\n"; | |
} | |
); | |
handle = window.open(); | |
txt = "<pre>" + txt + "</pre>"; | |
handle.document.write(txt); | |
}).call(this) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment