No feature flags available.
'}// ==UserScript== // @name Grok Feature Flags // @namespace http://tampermonkey.net/ // @version 1.0 // @description Toggle feature flags on grok.com to test out new features // @author Blankspeaker // @match https://grok.com/* // @grant none // @license GNU GPLv3 // @downloadURL none // ==/UserScript== (function() { 'use strict'; try { // Default flags to initialize if local_feature_flags is missing or empty const defaultFlags = { "show_favorite_button": false, "SHOW_FAVORITE_BUTTON": false, "show_followups": false, "SHOW_FOLLOWUPS": false, "store_long_pastes_as_files": false, "STORE_LONG_PASTES_AS_FILES": false, "show_sports_cards": false, "SHOW_SPORTS_CARDS": false, "show_finance_cards": false, "SHOW_FINANCE_CARDS": false, "show_places_cards": false, "SHOW_PLACES_CARDS": false, "show_images_cards": false, "SHOW_IMAGES_CARDS": false, "enable_brave_completions": false, "ENABLE_BRAVE_COMPLETIONS": false, "suggestions_use_cache": false, "SUGGESTIONS_USE_CACHE": false, "show_create_report_button_on_attachments": false, "SHOW_CREATE_REPORT_BUTTON_ON_ATTACHMENTS": false, "enable_report_loading_screen": false, "ENABLE_REPORT_LOADING_SCREEN": false, "show_artifacts_share_button": false, "SHOW_ARTIFACTS_SHARE_BUTTON": false, "show_artifacts_inline_button": false, "SHOW_ARTIFACTS_INLINE_BUTTON": false, "disable_python_artifacts": false, "DISABLE_PYTHON_ARTIFACTS": false, "enable_code_execution": false, "ENABLE_CODE_EXECUTION": false, "enable_latex_preview": false, "ENABLE_LATEX_PREVIEW": false, "show_response_load_timer": false, "SHOW_RESPONSE_LOAD_TIMER": false, "thinking_auto_open": false, "THINKING_AUTO_OPEN": false, "enable_anon_cloning": false, "ENABLE_ANON_CLONING": false, "enable_anon_users": false, "ENABLE_ANON_USERS": false, "show_grok_2": false, "SHOW_GROK_2": false, "hide_subscription_flows_from_premium_plus_users": false, "HIDE_SUBSCRIPTION_FLOWS_FROM_PREMIUM_PLUS_USERS": false, "show_anon_help_link": false, "SHOW_ANON_HELP_LINK": false, "enable_auto_stream_retry": false, "ENABLE_AUTO_STREAM_RETRY": false, "enable_browser_notifications": false, "ENABLE_BROWSER_NOTIFICATIONS": false, "enable_conversation_tabs": false, "ENABLE_CONVERSATION_TABS": false, "show_artifacts_ask_grok_button": false, "SHOW_ARTIFACTS_ASK_GROK_BUTTON": false, "show_artifacts_explain_button": false, "SHOW_ARTIFACTS_EXPLAIN_BUTTON": false, "enable_artifacts_editing": false, "ENABLE_ARTIFACTS_EDITING": false, "show_x_badge": false, "SHOW_X_BADGE": false, "show_open_in_app_dialog": false, "SHOW_OPEN_IN_APP_DIALOG": false, "show_open_in_app_dialog_every_time": false, "SHOW_OPEN_IN_APP_DIALOG_EVERY_TIME": false, "show_open_in_app_dialog_download_default": false, "SHOW_OPEN_IN_APP_DIALOG_DOWNLOAD_DEFAULT": false, "enable_grok_analyze_url": false, "ENABLE_GROK_ANALYZE_URL": false, "show_deeper_search": false, "SHOW_DEEPER_SEARCH": false, "enable_memory_toggle": false, "ENABLE_MEMORY_TOGGLE": false, "toggle_search_only": false, "TOGGLE_SEARCH_ONLY": false, "show_memory_summary": false, "SHOW_MEMORY_SUMMARY": false, "open_memory_in_new_tab": false, "OPEN_MEMORY_IN_NEW_TAB": false, "show_orb_icon_memory": false, "SHOW_ORB_ICON_MEMORY": false, "show_search_deeper": false, "SHOW_SEARCH_DEEPER": false, "enable_add_text_content": false, "ENABLE_ADD_TEXT_CONTENT": false, "enable_google_drive": false, "ENABLE_GOOGLE_DRIVE": false, "enable_microsoft_onedrive": false, "ENABLE_MICROSOFT_ONEDRIVE": false, "enable_csv_rendering": false, "ENABLE_CSV_RENDERING": false, "enable_in_app_reporting": false, "ENABLE_IN_APP_REPORTING": false, "show_artifact_to_workspace_button": false, "SHOW_ARTIFACT_TO_WORKSPACE_BUTTON": false, "workspace_agent": false, "WORKSPACE_AGENT": false, "show_youtube_embeds": false, "SHOW_YOUTUBE_EMBEDS": false, "show_reddit_embeds": false, "SHOW_REDDIT_EMBEDS": false, "only_use_single_youtube": false, "ONLY_USE_SINGLE_YOUTUBE": false, "show_x_inline": false, "SHOW_X_INLINE": false, "enable_think_harder": false, "ENABLE_THINK_HARDER": false, "enable_conversation_starters": false, "ENABLE_CONVERSATION_STARTERS": false, "enable_expanded_upsell_banners": false, "ENABLE_EXPANDED_UPSELL_BANNERS": false, "use_dynamic_suggested_mode_text": false, "USE_DYNAMIC_SUGGESTED_MODE_TEXT": false, "show_model_config_override": false, "SHOW_MODEL_CONFIG_OVERRIDE": false, "enable_grok_tasks": false, "ENABLE_GROK_TASKS": false }; // Read current flags from localStorage, initialize with defaults if empty let rawFlags = localStorage.getItem("local_feature_flags"); console.log("Raw local_feature_flags:", rawFlags); let currentFlags = rawFlags ? JSON.parse(rawFlags) : {}; if (Object.keys(currentFlags).length === 0) { console.log("No flags found in localStorage. Initializing with default flags."); currentFlags = { ...defaultFlags }; localStorage.setItem("local_feature_flags", JSON.stringify(currentFlags)); } // Group flags by uppercase name to avoid duplicate display let flagGroups = {}; Object.keys(currentFlags).forEach(flag => { const normalized = flag.toUpperCase(); if (!flagGroups[normalized]) { flagGroups[normalized] = []; } flagGroups[normalized].push(flag); }); let displayFlags = Object.keys(flagGroups); // Log the number of unique and total flags console.log("Total flags:", Object.keys(currentFlags).length, "Unique flags (after normalization):", displayFlags.length); // Create UI element for flag picker let ui = document.createElement("div"); ui.id = "feature-flags-ui"; ui.style.display = "none"; // Initially hidden ui.innerHTML = `
No feature flags available.
'}