Krea Minute Increase

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

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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
})();