IDriveSafely.com auto skip

Auto-click navigation button when enabled, auto-play videos

作者
💩p💩o💩o
今日安裝
0
安裝總數
0
評價
0 0 0
版本
4.2
建立日期
2025-07-25
更新日期
2025-07-25
尺寸
11.1 KB
授權條款
MIT
腳本執行於

IDriveSafely.com Auto Skip Userscript

A userscript that automatically bypasses timers, plays videos, and navigates through IDriveSafely.com course pages.

Features

  • Auto-plays videos - Automatically starts videos when you reach a video page
  • Multiple video player support - Works with Video.js, custom play buttons, and HTML5 video players
  • Smart video detection - Detects when new video elements are added to the page
  • Smart button clicking - Only clicks navigation buttons when they're enabled (not disabled)
  • Chrome notifications - Shows notifications when buttons are successfully clicked
  • Page change detection - Resets state when navigating to new pages
  • Mutation observer - Instantly detects when buttons become clickable
  • Multiple video player support - Works with both Video.js and HTML5 video players

Installation

Prerequisites

You need a userscript manager extension:

Steps

  1. Install one of the userscript managers above
  2. Click on the extension icon and create a new script
  3. Copy the entire contents of userscript.js and paste it into the editor
  4. Save the script (Ctrl+S or Cmd+S)
  5. Navigate to https://app.idrivesafely.com and the script will activate automatically

How It Works

Timer Pages

  • The script monitors the "Next" button (arrow button)
  • Once the timer expires and the button becomes enabled, it automatically clicks it
  • You'll receive a notification when the page advances

Video Pages

  • Videos are automatically detected and played when the page loads
  • The script tries multiple methods to start video playback:
    • Direct HTML5 video element play
    • Custom play button clicking
    • Video.js player controls
  • Monitors for dynamically loaded video elements
  • Once the video finishes, the Next button becomes enabled
  • The script automatically clicks the Next button to advance

Notifications

  • The script will request notification permissions when first run
  • Notifications appear when:
    • Continue Learning button is clicked
    • Next page button is clicked
    • Page successfully advances

Configuration

The script runs checks every 2 seconds by default. You can modify this by changing the interval in line 178:

setInterval(mainLoop, 2000); // Change 2000 to your desired milliseconds

Troubleshooting

Notifications not working?

  1. Make sure you've granted notification permissions to the website
  2. Check if your browser has notifications enabled
  3. The script falls back to console logging if notifications fail

Script not clicking buttons?

  1. Open browser console (F12) and check for any error messages
  2. Verify the button selectors haven't changed on the website
  3. Make sure the userscript manager extension is enabled

Videos not auto-playing?

  • Some browsers block autoplay by default. Check your browser's autoplay settings for the website

Changelog

Version 4.1

  • Enhanced video auto-play with multiple detection methods
  • Added direct video element playback
  • Improved Video.js player support
  • Added mutation observer for dynamically loaded videos
  • Better page change detection to reset video state

Version 4.0

  • Added smart button state detection (only clicks when enabled)
  • Implemented Chrome notifications
  • Added mutation observer for instant button state changes
  • Improved video player detection and auto-play
  • Better error handling and logging

Version 1.0

  • Initial release with basic auto-click functionality

Disclaimer

This script is for educational purposes only. Use at your own risk and make sure to comply with IDriveSafely.com's terms of service.

License

MIT License - See the script header for details