ServiceNow Inject Custom Bookmarks into UI

Take your bookmarks wherever you go by dynamically injecting your bookmark configuration list into the UI (Classic or Next Experience).

作者
Erik Anderson
日安装量
0
总安装量
7
评分
0 0 0
版本
1.1.04.04.2024
创建于
2023-09-29
更新于
2024-04-05
大小
41.7 KB
许可证
MIT
适用于

ServiceNow: Inject Custom Bookmarks into UI

Take your bookmarks wherever you go by dynamically injecting your bookmark configuration list into the UI (Classic or
Next Experience).

Why This Exists:

If you're like me, you may be someone who is on multiple ServiceNow Instances all the time, maybe some of those instances get z-booted or cloned over on a fairly regular basis. Then all your favorite bookmarks you spent a good while meticulously crafting are gone. Additionally, each instance probably has a different set of bookmarks, there's no consistency and makes developing and navigating on the platform just that much more cumbersome.

This makes things simple. Configure the bookmark array within the script with whatever you like (or just use the default that I provided as an example below) and then you're good. Whenever you open your ServiceNow instance the script will append the bookmark list configured within the script and append it to your existing bookmark list already in the instance. Whenever you make a change your bookmarks will update on every instance you visit so no need to repeat.

Some Notes:

If you are using the Next Experience UI, the way bookmarks are injected is by posting specific events. For reasons I haven't had the time to fully investigate less than 1% of the time the bookmarks get injected but then all of the modules in the "all" section get removed. The easiest way to fix this is just to do a simple clear local storage. If you have SN-Utils (which you should) just use the "cls" slash command to clear it out and refresh the page. Everything should be generated correctly.