Learning Popup Height Adjuster for NowLearning: Enhance Your Learning Experience!

dogieglo
Tera Contributor

Introducing Iframe Height Adjuster for ServiceNow NowLearning: Enhance Your Learning Experience!

Hello ServiceNow Community!

I'm excited to share a new tool I've developed to improve your learning experience on the ServiceNow NowLearning platform: Iframe Height Adjuster for ServiceNow NowLearning. This userscript is designed to automatically adjust the height of iframes on NowLearning pages, ensuring that much more content is comfortably viewable without the need for constant scrolling.

 

Why You Need It

While using NowLearning, you may have encountered popups/iframes that are too small, making it difficult to interact with the course content. This script solves that problem by allowing for dynamic height adjustment of popup (iframe) to fit the content better.

Instead of:

dogieglo_2-1707506060188.png

You will experience this:

dogieglo_3-1707506112149.png

 

 

Key Features

  • Automatic Adjustment: Once installed, the script automatically adjusts the height of iframes on NowLearning course pages.
  • Customizable Height: You can easily set a custom height for popups (iframes) according to your preference directly from the Tampermonkey menu.
  • Easy Installation: Compatible with popular userscript managers like Tampermonkey and Greasemonkey.

Installation Steps

  1. Ensure you have Tampermonkey (or a similar userscript manager) installed in your browser.
  2. Navigate to the script's URLhttps://github.com/D-Ogi/Iframe-Height-Adjuster-for-ServiceNow-NowLearning/raw/main/iframe-height-ad...
  3. Let Tampermonkey install the script with just a click of "Install" button.

How to Use

After installation, the script will automatically do its job on NowLearning pages. To customize the iframe height:

  • Select 'Set Iframe Height' from the dogieglo_1-1707505986582.png Tampermonkey menu for this script.
  • Enter your desired height (e.g., 79em) when prompted.
    dogieglo_0-1707505957217.png

     

Contributing

Your feedback and contributions are welcome! Feel free to submit pull requests or create issues on GitHub if you have any improvements or find bugs.

 

This tool is all about making your learning journey on ServiceNow more seamless and enjoyable. I hope you find it helpful! Looking forward to your feedback and contributions.

 

Happy learning,
Dawid

3 REPLIES 3

dogieglo
Tera Contributor

Disclaimer: Security and Safety First

Before proceeding with the installation of any userscript, including mine, it's crucial to prioritize your online safety. Userscripts have the capability to modify web page content and behavior in your browser, which means they have a significant level of access to your web activities.

I strongly advise the following precautions:

  • Review the Script: Always take the time to review the script's code yourself or have it reviewed by someone knowledgeable in JavaScript and web security. Understanding what the script does can help you identify any potential security risks.
  • Use Trusted Sources: Download userscripts only from reputable sources. While I ensure the integrity of my script hosted on GitHub, it's important to be cautious with scripts obtained from other sources.
  • Stay Informed: Be aware of what permissions the userscript requests and consider the implications. If a script requires extensive permissions that don't seem necessary for its functionality, that might be a red flag.
  • Keep Updated: Follow any updates or discussions related to the userscript for potential security patches or identified vulnerabilities. Keeping your scripts up to date is as crucial as updating your software for security.

Jim Coyne
Kilo Patron

This was great timing: I was going through a course on the weekend and the window size was driving me crazy.

 

However, I did not really want to install Tampermonkey or something similar just for this, so I created a bookmarklet instead.  Here's the post that describes it: TNT: Useful Bookmarklet - "Now Learning Window Size"

 

Kudos to you and thanks for the inspiration.

Daniel Oderbolz
Kilo Sage

Dear @dogieglo & @Jim Coyne 
Thanks a lot for your contributions!

Is anybody from ServiceNow listening? I hope that they fix this at the source and update the code of NOW Learning. 

 

Best
Daniel


If this answer was helpful, I would appreciate if you marked it as such - thanks!

Best
Daniel