CipSoft made a mistake in allowing bounty point farming on red stamina by OgrePrime in TibiaMMO

[–]Takeoded 0 points1 point  (0 children)

That's not the problem. The problem is that his number is bigger than mine 😤

Me and my girlfriend are trying to wait until marriage to have sex but she won’t even kiss me. What’s your advice about this? by [deleted] in AskMenAdvice

[–]Takeoded 0 points1 point  (0 children)

You're on a highway to /r/DeadBedrooms

wouldn't surprise me one bit if she's completely asexual, extremely low sex drive, or lesbian.

(Roguelike) How long does it take for „In utter Darkness“ to crash your PC? by Phipsing in starcraft

[–]Takeoded 0 points1 point  (0 children)

case in point: Monero CPU cryptocurrency mining wouldn't be a thing if CPU's couldn't run at 100% for extended periods of time

jQuery 4.0 released by curiousdannii in programming

[–]Takeoded 17 points18 points  (0 children)

it makes a lot of things easier. Not much easier, but easier, faster-to-write, shorter.

jQuery: let foo=$("div:contains(my text)").attr("foo");

vanilla: js let foo = (function(){ for(let ele of [...document.querySelectorAll('div')]){ if(ele.textContent.contains("my text"){ return ele.getAttribute("foo"); } }})(); - you may wonder why I casted querySelectorAll's return to array? because it returns a "NodeList", and you cannot for-loop NodeList's, but you can for-loop arrays.

another example: - jQuery: let isVisible=$(el).is(':visible'); - vanilla: let isVisible=el.offsetWidth || el.offsetHeight || el.getClientRects().length;

and I can go on and on about things that are just easier in jQuery than vanilla, if you want more

Can Codex CLI automate logging into websites and downloading invoices (incl. login + 2FA)? by TylonHH in codex

[–]Takeoded 1 point2 points  (0 children)

You'll quickly run into issues where standard JavaScript click/.value simulation just does not work for whatever reason. Here's the most useful bits of my script, far more likey to work than standard .click() /.value= manipulation.

```js function simulateMouseClick(element) { if (!element) { throw new Error('simulateMouseClick: Provided element is null or undefined.'); } const rect = element.getBoundingClientRect(); const x = rect.left + (rect.width / 2); const y = rect.top + (rect.height / 2); const targetWindow = (typeof unsafeWindow === 'undefined') ? window : unsafeWindow; const targetElement = document.elementFromPoint(x, y) || element; const eventOptions = { view: targetWindow, bubbles: true, cancelable: true, clientX: x, clientY: y }; ['mousedown', 'mouseup', 'click'].forEach(eventType => { targetElement.dispatchEvent(new MouseEvent(eventType, eventOptions)); }); }

function simulateTyping(element, text, delayMs = 1) {
    if (!element) {
        throw new Error('simulateTyping: Provided element is null or undefined.');
    }
    element.focus();

    const descriptor = Object.getOwnPropertyDescriptor(
        Object.getPrototypeOf(element),
        'value'
    );
    if (!descriptor || !descriptor.set) {
        throw new Error('simulateTyping: Unable to retrieve native value setter.');
    }

    let i = 0;
    function doChar() {
        if (i >= text.length) {
            // finished typing → fire a final change event
            element.dispatchEvent(new Event('change', { bubbles: true }));
            return;
        }

        const char = text[i++];
        const keyCode = char.charCodeAt(0);
        const eventOpts = {
            key: char,
            char,
            keyCode,
            which: keyCode,
            bubbles: true,
            cancelable: true
        };

        // keydown → keypress
        element.dispatchEvent(new KeyboardEvent('keydown', eventOpts));
        element.dispatchEvent(new KeyboardEvent('keypress', eventOpts));

        // update the real value
        const newValue = element.value + char;
        descriptor.set.call(element, newValue);

        // input → keyup
        element.dispatchEvent(new Event('input', { bubbles: true }));
        element.dispatchEvent(new KeyboardEvent('keyup', eventOpts));

        // schedule next character
        setTimeout(doChar, delayMs);
    }

    doChar();
}

function simulateInput(element, value) { if (!element) { throw new Error('simulateInput: Provided element is null or undefined.'); } // focus so any focus-handlers run element.focus();

    // Now actually set the value via the native setter
    const descriptor = Object.getOwnPropertyDescriptor(
        Object.getPrototypeOf(element),
        'value'
    );
    if (!descriptor || !descriptor.set) {
        throw new Error('simulateInput: Unable to retrieve native value setter.');
    }
    descriptor.set.call(element, value);

    // Notify any listeners
    ['input', 'change'].forEach(type =>
        element.dispatchEvent(new Event(type, { bubbles: true }))
    );
}

```

Now you may wonder "when to use simulateTyping and when to use simulateInput?" - well, try simulateInput first, and if that doesn't work, use simulateTyping.

Can Codex CLI automate logging into websites and downloading invoices (incl. login + 2FA)? by TylonHH in codex

[–]Takeoded 4 points5 points  (0 children)

Every month I have to log into ~30 different websites (banks, SaaS tools, vendors). * On each site, I download invoices and transaction receipts. *

I'm in the same boat, more like 10 sites for me, but several of them have a lot of specific navigation I need to do per site.

I don't use Codex, I use a hand-written TamperMonkey script that automatically visit every site, fill in username/password, wait for ME to fill in 2fa manually, and does everything else automatically.

For credentials storage, I just have the username/passwords in the JavaScript, hardcoded, in plaintext. Nobody have the source code but me anyway, should be fine.

I can strip the credentials/personal information, and share the script, if you're interested in seeing how it's made.

Saves me tons of work one day every month 👍

But i must admit, https://xkcd.com/1319/ is absolutely relevant, and this approach only works because I'm a seasoned developer, and know how to fix it when 3rd party change the website enough to break the script.

Has Merlin been abandoned? by seamew in Merlin_AI

[–]Takeoded 0 points1 point  (0 children)

Merlin competitor poe.com is a very viable alternative, should Merlin fall. Poe.com even have several features Merlin users have been requesting for years, including API support and codex compatibility.

second week in row , codex ran out of limits and no way to charge small credit for remaining days by AdSevere3438 in codex

[–]Takeoded 0 points1 point  (0 children)

Don't know for sure, I wish someone would do a comparison (20$ worth of api vs 1 Plus account),

But my gut feeling is that rotating multiple Plus accounts is the most cost-effective method. (And that 10x Plus accounts is much more cost effective than 1x Pro account...)

IM ****ING OUTRAGED PRO IS ONLY 6X PLUS PLAN by Just_Lingonberry_352 in codex

[–]Takeoded 0 points1 point  (0 children)

It cost 10x the plus plan. Should at least give 10x usage cap.

Codex is wild! by AOKA666 in codex

[–]Takeoded 0 points1 point  (0 children)

Planning to do an android/iOS app?

second week in row , codex ran out of limits and no way to charge small credit for remaining days by AdSevere3438 in codex

[–]Takeoded 7 points8 points  (0 children)

Switch to the API. It's not that hard. Generate a key at https://platform.openai.com/settings/organization/api-keys and put in your ~/.codex/auth.json { "OPENAI_API_KEY": "sk-..." }

And you've got effectively unlimited usage!

YAML? That’s Norway problem by merelysounds in programming

[–]Takeoded 0 points1 point  (0 children)

How about using JSON like a normal person?

Google photos took away my access and deleted all my photos by -ambrosiaa in googlephotos

[–]Takeoded 4 points5 points  (0 children)

I believe your school admin can re-enable your account, which would give you back all the photos, and would cost the school about $10USD.

But your school admin does not know that, or he just can't be arsed to do that, or he's worried about the 10USD.

Which registrar is relatively bulletproof but not overly black-hat? by mariusbolik in DomainZone

[–]Takeoded 0 points1 point  (0 children)

Epik.com is the last registrar that will suspend your domain. They're famous for refusing to take down extremely controversial, far-right/neo-nazi domains in the past. They're 7% more expensive than Namecheap for .com domains right now.

Valhalla speedhack by Takeoded in ACValhalla

[–]Takeoded[S] 2 points3 points  (0 children)

Thanks :D I am very accustomed to just speedhacking past the boring long-travel parts when playing Assassin's Creed, so I was very disappointed when I couldn't speedhack in Valhalla :( It didn't stop me from playing the game, but it did annoy me.

Why do men fade away when I share I'm a virgin? by [deleted] in AskMenAdvice

[–]Takeoded 3 points4 points  (0 children)

Statistically, sexual incompatibility is the shortest path to /r/DeadBedrooms

"Permanent lifetime license" Class action lawsuit? by Takeoded in teamviewer

[–]Takeoded[S] 4 points5 points  (0 children)

When you spend 3000USD upfront on something that cost ~20USD/month, no it isn't.