loader image

Ferdium [Google Calendar Fix]

What makes us different from other similar websites? Forums Tech Ferdium [Google Calendar Fix]

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #8479
    thumbtak
    Moderator

    Here is the modified version of the Ferdium recipe files tailored specifically for Google Calendar.

    To set this up, follow a similar structure to the one in your image:

    1. Go to your Ferdium dev recipes directory: ~/.var/app/org.ferdium.Ferdium/config/Ferdium/recipes/dev/
    2. Create a new folder named google-calendar-workspace
    3. Inside that folder, create the following two files:

    index.js
    This script overrides the User Agent to ensure Google doesn’t flag Ferdium as an “Insecure Browser.”

    module.exports = (Ferdium) => {
    return class GoogleCalendar extends Ferdium {
    overrideUserAgent() {
    // High-version Chrome string to bypass "Insecure Browser" blocks
    return "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36";
    }
    };
    };

    package.json
    This points Ferdium to the correct Google Account chooser and redirects straight to Google Calendar upon a successful login.

    {
    "id": "google-calendar-workspace",
    "name": "Google Calendar Workspace",
    "version": "1.0.0",
    "description": "Internal Google Calendar",
    "main": "index.js",
    "author": "Ferdium User",
    "config": {
    "serviceURL": "https://accounts.google.com/AccountChooser?continue=https://calendar.google.com/calendar/u/0/r",
    "hasNotificationDot": true,
    "hasTeamId": false
    }
    }

    Save this icon for the service.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
TAKs Shack