🏠 Home 

Lu.ma Add to Calendar Button (Fixed Year)

Adds an "Add to Calendar" button below section 1 on Lu.ma event pages with correct year handling


Install this script?
Author
BASiQ
Daily installs
0
Total installs
0
Ratings
0 0 0
Version
1.3
Created
2024-10-03
Updated
2024-10-03
Size
9.76 KB
License
MIT
Applies to

# Lu.ma Add to Calendar Button (Fixed Year)

**Version:** 1.3
**Author:** BASiQ

**Description:**
This userscript adds a convenient "Add to Calendar" button to Lu.ma event pages, allowing you to easily add events to your Google Calendar. The button is added just below Section 1 on the event page. This version includes improved handling for dates and times, ensuring that the correct year is always used, eliminating common issues such as incorrect past years appearing in calendar entries.

**Features:**
- Automatically adds an "Add to Calendar" button below Section 1 of Lu.ma event pages.
- Correctly parses and formats event details, including the event title, location, and description.
- Handles start and end times reliably, with improved date parsing logic using regular expressions.
- Ensures the correct year is used for all events, preventing common issues with incorrect year output.
- Supports multi-day events where the end time may fall on the next day.

**Usage:**
- Visit any Lu.ma event page.
- The "Add to Calendar" button will appear automatically below the event's details section.
- Click the button to open Google Calendar with the event details pre-filled, making it easy to save.

**Why This Script is Useful:**
Have you ever tried to add an event from Lu.ma to your calendar, only to find that the year is incorrect, or the details are difficult to copy over manually? This userscript solves those problems, providing a one-click solution that ensures your events are accurately added to Google Calendar with all the necessary information filled in.

**Changelog:**
- **v1.3**: Fixed issues with incorrect year parsing by simplifying date and time handling. Improved event date parsing using regex for greater accuracy.