Skip to content

Instantly share code, notes, and snippets.

View DodoGames7's full-sized avatar
🍕
Pizza?

dodoGames DodoGames7

🍕
Pizza?
View GitHub Profile
@insertish
insertish / anonymise.js
Last active October 14, 2021 21:17
Randomise your Steam purchases for safely fucking with scammers.
[...document.querySelectorAll('.wallet_table_row')]
.map(x => {
if (x.querySelector('.wht_items').innerText.includes('£')) return x.parentElement.removeChild(x);
let amount = (Math.random() * 20).toFixed(2);
x.querySelector('.wht_total').innerText = "£" + amount;
x.querySelector('.wht_wallet_change').innerText = "-£" + amount;
x.querySelector('.wht_wallet_balance').innerText = "£0.00";
});
[...document.querySelectorAll('.wth_payment')].map(x => x.innerText = 'Visa **37');
@sindresorhus
sindresorhus / esm-package.md
Last active May 7, 2024 08:55
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@joepie91
joepie91 / vpn.md
Last active May 5, 2024 17:55
Don't use VPN services.

Don't use VPN services.

No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.

Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.

  • A Russian translation of this article can be found here, contributed by Timur Demin.
  • A Turkish translation can be found here, contributed by agyild.
  • There's also this article about VPN services, which is honestly better written (and has more cat pictures!) than my article.