
Tooltips are captured when recording Fiori, and they aren't attractive
//This will remove tooltips from Fiori Tiles
function getFLPTooltipsOut() {
const mutationObserver = new MutationObserver((entries) => {
entries[0].target.removeAttribute('title')
}
);
const panel = document.querySelector('body');
mutationObserver.observe(panel, {
attributes: true,
subtree: true,
attributeFilter: ["title"],
});
}
// OPTIONAL: Remove titles as tooltips from the fields
function cleanTitle() {
getFLPTooltipsOut();
setTimeout(() => {
document.querySelectorAll('*').forEach(function(node) {
try {
node.removeAttribute('title')
} catch(e) {}
})
}, 1000)}
//initial cleanup
cleanTitle();
//run cleanup on every page update
window.onhashchange = cleanTitle;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
4 | |
4 | |
4 | |
3 | |
3 | |
2 | |
2 | |
2 | |
1 |