This only applies for Windows on the default CurseForge installation. You should have a modern Node.JS installation (I'm using version 20)
- Go to
C:\Users\<YOUR USER>\AppData\Local\Programs\CurseForge Windows\resources
- Run
npx @electron/asar extract app.asar app_made_by_tards
on your cmd - Go to the new
app_made_by_tards
folder and locate thedist
folder - Go to the
dist
folder and locate thedesktop
folder - Go to the
desktop
folder and opendesktop.js
As of right now, what needs to be edited is on LINE 165
- Try searching for something like
"aside",{className:(()=>{let e={"curseforge-ad"
and change"curseforge-ad":!0,subscribed:!1
to"curseforge-ad":0,subscribed:1
You are only removing the !
marks to emulate being a "subscribed" user
- Search for
className:"ad-inner",children
or regexclassName:"ad-inner"[^}]*\{show:
and replace the function after{show:
with0
. The function that you are replacing should look something like!n&&!t
- Search for
adsIntro),"."]
and remove everything within the brackets. Before, it should look something like[d(UO.adsIntro),"."]
. The end result should look like[]
Now we're ready to re-pack the app.
- Run
npx @electron/asar pack app_made_by_tards app.asar
in the same directory that the initial unpacked folder is in (C:\Users\<YOUR USER>\AppData\Local\Programs\CurseForge Windows\resources
) - Delete the initial CurseForge data folder located at
C:\Users\<YOUR USER>\AppData\Roaming
. Should be the folder named CurseForge.
Relaunch the app and you will no longer see ads.
As of right now, this works but updates to the launcher may change the compiled electron output; I would recommend preventing the app from updating. I believe deleting app-update.yml
should do the trick?
If any of the string I used for searching above does not work, search for support.overwolf.com
in the file and the line before the opening <style>
tag should be the line to edit.
IF for some reason there are still ads showing somewhere, add these domains to an ad blocking client like AdGuard
||adnexus.net^
||sja.yahoo.com^
||criteo.com^