Krea Minute Increase

Increase the time limit on Krea from 3 minutes to 120 minutes

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Krea Minute Increase
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Increase the time limit on Krea from 3 minutes to 120 minutes
// @author       You
// @match        *://*.krea.ai/*  // Adjust the domain to match the Krea website
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // A function to find and modify minute values from 3 to 120
    function modifyMinutes() {
        // You may need to adjust this selector based on the actual structure of the Krea website
        let minuteElements = document.querySelectorAll("span, p, div"); // Adjust selectors to match minute elements
        minuteElements.forEach(el => {
            if (el.innerText.includes('3 minutes')) {
                el.innerText = el.innerText.replace('3 minutes', '120 minutes');
            }
        });
    }

    // Run the function initially and set an interval to check for dynamic changes on the page
    modifyMinutes();
    setInterval(modifyMinutes, 2000); // Recheck every 2 seconds to ensure dynamic content is updated
})();