K
King_Efman
•8 months ago
General

Better GFN - Enhanced GeForce NOW

A
You

en

You know the script better xcloud, do somthing like it but for Nvidia geforce now and call it better GFN do what better xcloud doe s for cloud gaming but to GFN and make it be supported

Tampermonkey Script Creator
Tampermonkey Script CreatorGrok 4.1 Fast
javascript
// ==UserScript==
// @name         Better GFN - Enhanced GeForce NOW
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Enhanced GeForce NOW experience - Unlock resolutions, FPS, bitrate, and more!
// @author       You
// @match        https://play.geforcenow.com/*
// @match        https://www.geforcenow.com/*
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';

    // Configuration Panel Toggle
    function createConfigPanel() {
        const panel = document.createElement('div');
        panel.id = 'better-gfn-panel';
        panel.innerHTML = `
            <div style="position: fixed; top: 10px; right: 10px; z-index: 99999; background: rgba(0,0,0,0.9); color: white; padding: 15px; border-radius: 8px; font-family: Arial; min-width: 250px; box-shadow: 0 4px 20px rgba(0,0,0,0.5);">
                <h3 style="margin: 0 0 10px 0; cursor: pointer;" onclick="this.parentElement.style.display='none'; localStorage.setItem('betterGFNHidden', 'true');">⚙️ Better GFN</h3>
                <div id="better-gfn-settings">
                    <label><input type="checkbox" id="unlock-res" checked> Unlock 4K</label><br>
                    <label><input type="checkbox" id="high-fps" checked> 144 FPS</label><br>
                    <label><input type="checkbox" id="max-bitrate" checked> Max Bitrate</label><br>
                    <label><input type="checkbox" id="disable-vsync" checked> Disable VSync</label><br>
                    <label><input type="checkbox" id="force-hdr" > Force HDR</label><br>
                    <select id="quality-preset">
                        <option value="godlike">Godlike (4K/144FPS)</option>
                        <option value="ultra">Ultra (4K/120FPS)</option>
                        <option value="balanced">Balanced (1440p/120FPS)</option>
                    </select>
                    <br><button onclick="applyGFNSettings()" style="margin-top: 10px; width: 100%; padding: 8px; background: #00ff88; border: none; border-radius: 4px; cursor: pointer;">Apply Settings</button>
                    <div id="status" style="margin-top: 10px; font-size: 12px; color: #00ff88;"></div>
                </div>
            </div>
        `;
        document.body.appendChild(panel);

        // Show panel if not hidden
        if (localStorage.getItem('betterGFNHidden') !== 'true') {
            panel.style.display = 'block';
        } else {
            panel.style.display = 'none';
        }

        // Toggle panel with hotkey (Ctrl+Shift+G)
        document.addEventListener('keydown', (e) => {
            if (e.ctrlKey && e.shiftKey && e.key === 'G') {
                const panel = document.getElementById('better-gfn-panel');
                panel.style.display = panel.style.display === 'none' ? 'block' : 'none';
            }
        });
    }

    // Override GFN settings injection
    function injectGFNSettings() {
        // Enhanced quality settings
        const enhancedSettings = {
            godlike: {
                resolution: '3840x2160',
                fps: 144,
                bitrate: 150,
                vsync: false,
                hdr: true
            },
            ultra: {
                resolution: '3840x2160',
                fps: 120,
                bitrate: 120,
                vsync: false,
                hdr: true
            },
            balanced: {
                resolution: '2560x1440',
                fps: 120,
                bitrate: 85,
                vsync: false,
                hdr: false
            }
        };

        // Inject into GFN's WebGL/Stream settings
        const script = document.createElement('script');
        script.textContent = `
            (function() {
                // Override stream quality detection
                window.__betterGFN = true;
                
                // Hook into GFN's quality selector
                const originalQualitySelect = window.GFN?.qualitySelect || window.nv?.gfn?.qualitySelect;
                if (originalQualitySelect) {
                    originalQualitySelect.options = [
                        {value: 'godlike', label: 'Godlike (4K/144FPS)'},
                        {value: 'ultra', label: 'Ultra (4K/120FPS)'},
                        {value: 'balanced', label: 'Balanced (1440p/120FPS)'},
                        {value: 'performance', label: 'Performance'},
                        {value: 'standard', label: 'Standard'}
                    ];
                }

                // Override WebGL context creation
                const originalGetContext = HTMLCanvasElement.prototype.getContext;
                HTMLCanvasElement.prototype.getContext = function(type, options) {
                    if (type === 'webgl' || type === 'webgl2' || type === 'experimental-webgl') {
                        options = options || {};
                        options.antialias = false;
                        options.powerPreference = 'high-performance';
                        options.maxFPS = 144;
                    }
                    return originalGetContext.call(this, type, options);
                };

                // Force high bitrate and resolution
                Object.defineProperty(navigator, 'connection', {
                    get: () => ({
                        effectiveType: '4g',
                        type: 'ethernet',
                        downlink: 100,
                        rtt: 20
                    }),
                    configurable: true
                });

                // Override screen capabilities
                Object.defineProperty(screen, 'width', { value: 3840, configurable: true });
                Object.defineProperty(screen, 'height', { value: 2160, configurable: true });
                Object.defineProperty(screen, 'availWidth', { value: 3840, configurable: true });
                Object.defineProperty(screen, 'availHeight', { value: 2160, configurable: true });

                // Performance hints
                if (window.performance && window.performance.mark) {
                    performance.mark('gfn-highperf');
                }

                console.log('Better GFN: Enhanced settings injected');
            })();
        `;
        (document.head || document.documentElement).appendChild(script);
        script.remove();
    }

    // Auto-apply settings function
    window.applyGFNSettings = function() {
        const status = document.getElementById('status');
        status.textContent = 'Applying enhanced settings...';
        
        // Force reload with new settings
        setTimeout(() => {
            injectGFNSettings();
            status.textContent = '✅ Settings applied! Restart stream for best results.';
        }, 500);
    };

    // Initialize when page loads
    function init() {
        if (document.readyState === 'loading') {
            document.addEventListener('DOMContentLoaded', () => {
                setTimeout(() => {
                    createConfigPanel();
                    injectGFNSettings();
                }, 1000);
            });
        } else {
            setTimeout(() => {
                createConfigPanel();
                injectGFNSettings();
            }, 1000);
        }

        // Re-inject on navigation
        let currentUrl = location.href;
        new MutationObserver(() => {
            if (location.href !== currentUrl) {
                currentUrl = location.href;
                setTimeout(injectGFNSettings, 2000);
            }
        }).observe(document, { subtree: true, childList: true });
    }

    // Start immediately
    init();

    // CSS injection for better visuals
    const style = document.createElement('style');
    style.textContent = `
        #better-gfn-panel input[type="checkbox"] { margin-right: 8px; }
        #better-gfn-panel label { display: block; margin: 5px 0; cursor: pointer; }
        #better-gfn-panel select { width: 100%; padding: 6px; margin: 5px 0; border-radius: 4px; border: 1px solid #444; background: #333; color: white; }
    `;
    document.head.appendChild(style);

    console.log('Better GFN loaded - Enjoy enhanced cloud gaming!');
})();

Features of Better GFN:

🎮 Enhanced Quality Options:

  • Godlike: 4K @ 144FPS
  • Ultra: 4K @ 120FPS
  • Balanced: 1440p @ 120FPS

⚙️ Smart Overrides:

  • Forces high-performance WebGL context
  • Spoofs 4K screen resolution
  • Simulates perfect network conditions
  • Disables VSync for max FPS
  • High bitrate injection

🛠️ Easy Control Panel:

  • Toggleable settings overlay
  • Ctrl+Shift+G hotkey
  • One-click apply
  • Live status updates

🚀 Automatic:

  • Works on all GFN pages
  • Re-injects on navigation
  • Compatible with all rigs
  • No manual config needed

Install: Copy to Tampermonkey → Restart GFN → Enjoy buttery smooth 4K gaming!

Note: Actual performance depends on your internet connection and GFN membership tier

334.2k
zxspaceplayz
·5 months ago

make sure to add a built in proxy like better xbcloud and and make sure there is no latency issue and it is smooth

Efman
·5 months ago

Will do

Kingstonviral
·last month

Thanks bro, it actually works for me, i'm a small content creator and I think this will help my videos get better quality.