Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Heaventh007/Shitcord-Fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Discord seems to have fixed this bug, let's hope it stays that way!

Shitcord-Fix

Jank fix to patch Discord emote searching.

How to use the fix

Download and install fiddler classic from https://www.telerik.com/fiddler/fiddler-classic

Open fiddler, and navigate to Tools > Options > HTTPS

Enable Capture HTTPS CONNECTs, and Decrypt HTTPS traffic, make sure the dropdown is set to "From all processes".

Click on Actions, then click on Trust Root Certificate.

It'll probably ask for admin privliges, and yes and no questions a few times, just click yes.

Click on "OK", then restart fiddler.

Once fiddler is open, click on Rules, then Customize Rules.

It should open what looks like a text editor, click on Go, and click "to OnBeforeRequest"

Paste in the fix from "RedirectFix.js" inside of OnBeforeRequest

Finally, use CTRL + S to save, or File > Save, then close the window.

Where to put the fix

Inside of OnBeforeRequest, find this:

if (m_AlwaysFresh && (oSession.oRequest.headers.Exists("If-Modified-Since") || oSession.oRequest.headers.Exists("If-None-Match")))
{
  oSession.utilCreateResponseAndBypassServer();
  oSession.responseCode = 304;
  oSession["ui-backcolor"] = "Lavender";
}

Put the fix right under the "}", without quotes.

SHOULD LOOK LIKE THIS

if (m_AlwaysFresh && (oSession.oRequest.headers.Exists("If-Modified-Since") || oSession.oRequest.headers.Exists("If-None-Match")))
{
  oSession.utilCreateResponseAndBypassServer();
  oSession.responseCode = 304;
  oSession["ui-backcolor"] = "Lavender";
}

// Define the URL we want to replace.
var OriginalURL = "https://discord.com/assets/c2ef546e05afb1fc662b.js"; 

// Check if our current URL contains the one we want to replace.
if (oSession.uriContains(OriginalURL)) {
    // Set our URL's to the redirected URL.
    oSession.fullUrl = "https://cdn.discordapp.com/attachments/1059455960269197312/1179744373529903174/c2ef546e05afb1fc662b.js";
    oSession.url.Replace(OriginalURL, oSession.fullUrl);
}

When all the steps are completed

In the discord app, hold CTRL and press R, this will reload all of Discord's dependencies.

About

Jank fix to patch Discord emote searching.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published