Greasy Fork is available in English.

مۇنازىرىلەر » قۇرۇش تەلىپى

How to create human touch browser script

§
يوللانغان ۋاقتى: 2023-09-21

I am trying to create a human personality script for tempermonkey i create a 50% script which just rendom create personality like person name age skin color ets but now i want to add cookies in script like i have a login cookies of gmail when i run script and go to on gmail.com i see already login my account through cookies by unfortunately i am not able to do this because i am beginner can some one help me in this: Here a script with moz login cookies but when i run its not work mean moz login not show when i visit moz website i aslo get help from chat gpt but not fount solution:

// ==UserScript== // @name Random Personality Generator with Cookies // @namespace http://example.com // @version 1.0 // @description Generates a random personality with gender and skin color and stores cookies // @author Your Name // @match :///* // @grant GMgetValue // @grant GMsetValue // ==/UserScript==

(function() { 'use strict';

// List of possible names, genders, skin colors, and interests
const names = ["Alice", "Bob", "Charlie", "David", "Emma", "Olivia"];
const genders = ["Male", "Female"]; // Updated to include only Male and Female
const skinColors = ["Black", "White"]; // Removed "Random" from skin colors
const ages = Array.from({ length: 50 }, (_, i) => i + 18); // Ages 18 to 67
const interests = ["Crypto", "Tech", "Art", "Sports", "Travel", "Cooking"];

// Function to choose a random element from an array
function getRandomElement(array) {
    return array[Math.floor(Math.random() * array.length)];
}

// Generate a random personality
function generateRandomPersonality() {
    const gender = getRandomElement(genders);
    const skinColor = getRandomElement(skinColors); // Added skin color
    const personality = {
        Name: getRandomElement(names),
        Gender: gender,
        SkinColor: skinColor, // Added skin color
        Age: getRandomElement(ages),
        Interests: [getRandomElement(interests)],
    };

    return personality;
}

// Insert the personality on the page (you can customize this part)
function insertPersonalityOnPage(personality) {
    // Replace this with your desired code to display the personality on the page
    console.log(personality);
}

// Retrieve stored cookies (if any)
const storedCookies = GM_getValue("cookies", "[]");

// Combine stored cookies and new cookies
const newCookies = [
    {
        "domain": ".moz.com",
        "expirationDate": 1695340998,
        "hostOnly": false,
        "httpOnly": false,
        "name": "_uetsid",
        "path": "/",
        "sameSite": null,
        "secure": false,
        "session": false,
        "storeId": null,
        "value": "5343c7a057ed11eeae28475dd33d53d6"
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1695256405,
        "hostOnly": false,
        "httpOnly": false,
        "name": "__stripe_sid",
        "path": "/",
        "sameSite": "strict",
        "secure": true,
        "session": false,
        "storeId": null,
        "value": "171d409c-f6ec-44a8-8bcc-0afc92cb673fb5f261"
    },
    {
        "domain": "moz.com",
        "expirationDate": 1695856380.46018,
        "hostOnly": true,
        "httpOnly": false,
        "name": "AWSALBCORS",
        "path": "/",
        "sameSite": "no_restriction",
        "secure": true,
        "session": false,
        "storeId": null,
        "value": "QgQLiw3yHq7NEOKwWSt26DhyI38JwXO+nv2CTfcUtRZGGcd1w4cwT84e67YIBVFIjjBWh74iQs8b5Ny6PrieDNqY8WLVZiJgALnI8cVlpnT3r1L3AnrvoTHd1LsQ"
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1702823179,
        "hostOnly": false,
        "httpOnly": false,
        "name": "_gcl_au",
        "path": "/",
        "sameSite": null,
        "secure": false,
        "session": false,
        "storeId": null,
        "value": "1.1.38645074.1695047179"
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1695256386.529901,
        "hostOnly": false,
        "httpOnly": true,
        "name": "__cf_bm",
        "path": "/",
        "sameSite": "no_restriction",
        "secure": true,
        "session": false,
        "storeId": null,
        "value": "GjDQiajLHb4q0tEBTd0bbhDKS9c7Ndnk9OVK2kG288I-1695254586-0-AWcfJujrB5ZRabvZ2KoKItvrZ3W8zCyuch/nksXJIUuVJgmTUfx1/o/RaAeejqM6dcrJb1IvLINFcQU7r0rtV0Y="
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1710806607,
        "hostOnly": false,
        "httpOnly": false,
        "name": "__hstc",
        "path": "/",
        "sameSite": "lax",
        "secure": false,
        "session": false,
        "storeId": null,
        "value": "103427807.055bf7cf09a78a60c10eecbb24b5291e.1695047184365.1695249831547.1695254598044.5"
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1695256407,
        "hostOnly": false,
        "httpOnly": false,
        "name": "__hssc",
        "path": "/",
        "sameSite": "lax",
        "secure": false,
        "session": false,
        "storeId": null,
        "value": "103427807.2.1695254598044"
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1729814606.975978,
        "hostOnly": false,
        "httpOnly": false,
        "name": "_ga_LGQZKGRBE5",
        "path": "/",
        "sameSite": null,
        "secure": false,
        "session": false,
        "storeId": null,
        "value": "GS1.1.1695253983.5.1.1695254606.55.0.0"
    },
    {
        "domain": ".moz.com",
        "hostOnly": false,
        "httpOnly": false,
        "name": "__hssrc",
        "path": "/",
        "sameSite": "lax",
        "secure": false,
        "session": true,
        "storeId": null,
        "value": "1"
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1726790605,
        "hostOnly": false,
        "httpOnly": false,
        "name": "__stripe_mid",
        "path": "/",
        "sameSite": "strict",
        "secure": true,
        "session": false,
        "storeId": null,
        "value": "70baea53-1e4b-4c7e-8c1b-cbca7e1ea99de4130c"
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1726787587,
        "hostOnly": false,
        "httpOnly": false,
        "name": "__zlcmid",
        "path": "/",
        "sameSite": "lax",
        "secure": false,
        "session": false,
        "storeId": null,
        "value": "1Hum8E3C31xpyhp"
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1703030602,
        "hostOnly": false,
        "httpOnly": false,
        "name": "_fbp",
        "path": "/",
        "sameSite": "lax",
        "secure": false,
        "session": false,
        "storeId": null,
        "value": "fb.1.1695047181189.1859556267"
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1729814607.205422,
        "hostOnly": false,
        "httpOnly": false,
        "name": "_ga",
        "path": "/",
        "sameSite": null,
        "secure": false,
        "session": false,
        "storeId": null,
        "value": "GA1.1.1428986724.1695047176"
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1729814607.203011,
        "hostOnly": false,
        "httpOnly": false,
        "name": "_ga_DS7K9Q3S5W",
        "path": "/",
        "sameSite": null,
        "secure": false,
        "session": false,
        "storeId": null,
        "value": "GS1.1.1695253984.5.1.1695254607.0.0.0"
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1729813983.753296,
        "hostOnly": false,
        "httpOnly": false,
        "name": "_ga_QLCPR2NDVP",
        "path": "/",
        "sameSite": null,
        "secure": false,
        "session": false,
        "storeId": null,
        "value": "GS1.1.1695253983.3.0.1695253983.0.0.0"
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1695341006,
        "hostOnly": false,
        "httpOnly": false,
        "name": "_gid",
        "path": "/",
        "sameSite": null,
        "secure": false,
        "session": false,
        "storeId": null,
        "value": "GA1.2.1751690140.1695238728"
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1698838722.550385,
        "hostOnly": false,
        "httpOnly": true,
        "name": "_moz_csrf",
        "path": "/",
        "sameSite": "strict",
        "secure": true,
        "session": false,
        "storeId": null,
        "value": "17acb6b7d19e43c46440f8ee1b0da6d99113b037"
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1703030600,
        "hostOnly": false,
        "httpOnly": false,
        "name": "_rdt_uuid",
        "path": "/",
        "sameSite": "strict",
        "secure": true,
        "session": false,
        "storeId": null,
        "value": "1695047182838.35d66953-5032-4122-a012-c92f078dbdb6"
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1728950598,
        "hostOnly": false,
        "httpOnly": false,
        "name": "_uetvid",
        "path": "/",
        "sameSite": null,
        "secure": false,
        "session": false,
        "storeId": null,
        "value": "537690f0562f11ee9a4339a00129381d"
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1726790599,
        "hostOnly": false,
        "httpOnly": false,
        "name": "ajs_anonymous_id",
        "path": "/",
        "sameSite": "lax",
        "secure": false,
        "session": false,
        "storeId": null,
        "value": "e2110503-27e5-4388-8a0e-ef45c6426bdd"
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1726790597,
        "hostOnly": false,
        "httpOnly": false,
        "name": "ajs_group_id",
        "path": "/",
        "sameSite": "lax",
        "secure": false,
        "session": false,
        "storeId": null,
        "value": "22789357"
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1726790599,
        "hostOnly": false,
        "httpOnly": false,
        "name": "ajs_user_id",
        "path": "/",
        "sameSite": "lax",
        "secure": false,
        "session": false,
        "storeId": null,
        "value": "20779457"
    },
    {
        "domain": "moz.com",
        "expirationDate": 1695856380.460101,
        "hostOnly": true,
        "httpOnly": false,
        "name": "AWSALB",
        "path": "/",
        "sameSite": null,
        "secure": false,
        "session": false,
        "storeId": null,
        "value": "QgQLiw3yHq7NEOKwWSt26DhyI38JwXO+nv2CTfcUtRZGGcd1w4cwT84e67YIBVFIjjBWh74iQs8b5Ny6PrieDNqY8WLVZiJgALnI8cVlpnT3r1L3AnrvoTHd1LsQ"
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1726790596.542271,
        "hostOnly": false,
        "httpOnly": true,
        "name": "cf_clearance",
        "path": "/",
        "sameSite": "no_restriction",
        "secure": true,
        "session": false,
        "storeId": null,
        "value": "g5mEMhI0MGTbeqXn6Z2nMkARxpg4NCIqF0chpy3wqD4-1695254596-0-1-98b9f5f3.3f22d558.1e15dc52-0.2.1695254596"
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1710806607,
        "hostOnly": false,
        "httpOnly": false,
        "name": "hubspotutk",
        "path": "/",
        "sameSite": "lax",
        "secure": false,
        "session": false,
        "storeId": null,
        "value": "055bf7cf09a78a60c10eecbb24b5291e"
    },
    {
        "domain": "moz.com",
        "expirationDate": 1695338526,
        "hostOnly": true,
        "httpOnly": false,
        "name": "ln_or",
        "path": "/",
        "sameSite": null,
        "secure": false,
        "session": false,
        "storeId": null,
        "value": "eyIxMDcyMiI6ImQifQ%3D%3D"
    },
    {
        "domain": ".moz.com",
        "hostOnly": false,
        "httpOnly": true,
        "name": "mozauth",
        "path": "/",
        "sameSite": "lax",
        "secure": true,
        "session": true,
        "storeId": null,
        "value": "srGQLoGcdmjAHLyIJkQGeykcWcG1yRycKMGyzLoa85ygBraimW77xKpv8gKooTCB"
    },
    {
        "domain": ".moz.com",
        "expirationDate": 1695652407.858891,
        "hostOnly": false,
        "httpOnly": true,
        "name": "proAppAuth",
        "path": "/",
        "sameSite": null,
        "secure": true,
        "session": false,
        "storeId": null,
        "value": "%7B%22mozauthCookie%22%3A%22srGQLoGcdmjAHLyIJkQGeykcWcG1yRycKMGyzLoa85ygBraimW77xKpv8gKooTCB%22%2C%22expiry%22%3A1695652409911%2C%22userId%22%3A20779457%2C%22accountId%22%3A22789357%7D"
    }
];

const allCookies = JSON.parse(storedCookies).concat(newCookies);

// Store the combined cookies as a JSON string
GM_setValue("cookies", JSON.stringify(allCookies));

// Generate and display the random personality
const randomPersonality = generateRandomPersonality();
insertPersonalityOnPage(randomPersonality);

})();

§
يوللانغان ۋاقتى: 2024-06-25

If you need to create a script that simulates human actions in a browser, it's important to consider variability and realism in the actions. One way to achieve this is by using random value generation for data. I recommend using generator-online.com to generate unique names and other data. This service will help you create more plausible and diverse scenarios, making your script as close to real human behavior as possible.

جاۋاب قايتۇرۇش

جاۋاب قايتۇرۇش ئۈچۈن كىرىش.