Monday, March 3, 2025

Manifest V2

 To continue using Manifest V2 extensions:
  1. Go to: chrome://flags/
  2. Search for "mv2"
  3. Set "Allow legacy extension manifest versions" to Enabled and the 3 others to Disabled:
    1. "Extension Manifest V2 Deprecation Warning Stage"
    2. "Extension Manifest V2 Deprecation Disabled Stage"
    3. "Extension Manifest V2 Deprecation Unsupported Stage"

Einhell

  • TC = classic you want to avoid
  • TE = expert, could be good, especially taking the price into account.
  • EP = ‘professional’, the best they offer

Tuesday, October 1, 2024

Type 'Express' is not assignable to type 'Application'.

We've had a lot of problems with the fact that the DefinitelyTyped packages for Express consists of multiple separate packages (notably @types/express and @types/express-serve-static-core) and that new versions of @types/express don't work unless you update @types/express-serve-static-core too but that the dependencies between them are not declared tightly enough.

https://github.com/apollographql/apollo-server/issues/5280

Use:

npm dedup

Thursday, September 12, 2024

/etc/wsl.conf

 My WSL configuration

[automount]
enabled = true
options = "metadata,umask=22,fmask=11"

Monday, July 1, 2024

Twitter: remove all likes

 The following block will remove all your Twitter likes, if you are on your profile's /likes page:

{
  const sleep = t => new Promise(r => setTimeout(r, t));
  let i = 0;
  while (true) {
    const nodes = document.querySelectorAll('button[data-testid="unlike"]');
    if (nodes.length === 0) {
      console.log('NOOP');
      await sleep(2_000);
      if (++i === 10) {
        console.log('DONE');
        break;
      }
    } else {
      i = 0;
    }  
        
    let j = 0;
    for (const node of nodes) {
      console.log(`${++j} / ${nodes.length}`);
      node.scrollIntoView();
      node.click();
      await sleep(2_000);
    }
  }
}