Skip to content
This repository was archived by the owner on May 4, 2024. It is now read-only.

Commit 7e3f909

Browse files
author
Harshal Kudale
committed
Updated Code files and version number
1 parent 15310c4 commit 7e3f909

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

Executables/NoMoreEdgeSetup.exe

0 Bytes
Binary file not shown.

NoMoreEdge.cs

+15-11
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,24 @@ static class NoMoreEdge
1919
{
2020

2121
[STAThread]
22+
static string urlmod(string url)
23+
{
24+
url = url.Replace("%3A", ":");
25+
url = url.Replace("%3D", "=");
26+
url = url.Replace("%2F", "/");
27+
url = url.Replace("%3F", "?");
28+
url = url.Replace("%25", "%");
29+
url = url.Replace("%26", "&");
30+
return url;
31+
}
2232
static string urlType(string url)
2333
{
2434
string urltype = "";
25-
if (url.Contains("Microsoft.Windows.Search") && url.Length > 116)
35+
if (url.Contains("Microsoft.Windows.Search") && !url.Contains("redirect") && url.Contains("bing"))
2636
{
2737
urltype = "searchword";
2838
}
29-
else if (url.Contains("Microsoft.Windows.Search") && url.Length < 116)
39+
else if (url.Contains("Microsoft.Windows.Search"))
3040
{
3141
urltype = "searchurl";
3242
}
@@ -44,21 +54,15 @@ static string widgetsurl(string url)
4454
{
4555

4656
url = url.Substring(url.IndexOf("https"), url.Length - url.IndexOf("https"));
47-
url = url.Replace("%3A", ":");
48-
url = url.Replace("%3D", "=");
49-
url = url.Replace("%2F", "/");
50-
url = url.Replace("%3", "?");
57+
url = urlmod(url);
5158
Console.WriteLine(url);
5259
return url;
5360
}
5461
static string searchurl(string url)
5562
{
5663
Console.WriteLine(url);
5764
url = url.Substring(url.IndexOf("http"), url.Length - url.IndexOf("http"));
58-
url = url.Replace("%3A", ":");
59-
url = url.Replace("%3D", "=");
60-
url = url.Replace("%2F", "/");
61-
url = url.Replace("%3", "?");
65+
url = urlmod(url);
6266
Console.WriteLine(url);
6367
return url;
6468
}
@@ -85,7 +89,7 @@ static void Main(string[] args)
8589
//string url = "microsoft-edge://https://www.google.com";
8690
//string url = "microsoft-edge:?upn=abc%40gmail.com&cid=8208f3b1a83e496b&source=Windows.Widgets&timestamp=1637894205027&url=https%3A%2F%2Fwww.msn.com%2Fen-in%2Fmoney%2Fnews%2Fblack-friday-sale-here-are-the-top-deals-on-iphones-oneplus-and-other-phones-you-can-t-miss%2Far-AAR82bF%3Focid%3Dwinp2octtaskbar";
8791
//string url = "microsoft-edge:?launchContext1=Microsoft.Windows.Search_cw5n1h2txyewy&url=http%3A%2F%2Fwww.amazon.in%2F";
88-
//string url = "microsoft-edge:?upn=abc%40gmail.com&cid=8208f3b1a83e496b&source=Windows.Widgets&timestamp=1637941810457&url=https%3A%2F%2Fgo.microsoft.com%2Ffwlink%2F%3Flinkid%3D2163242";
92+
//string url = "microsoft-edge:?launchContext1=Microsoft.Windows.Search_cw5n1h2txyewy&url=https%3A%2F%2Fwww.bing.com%2FWS%2Fredirect%2F%3Fq%3Damazon.in%26url%3DaHR0cHM6Ly93d3cuYW1hem9uLmluL2luZGlhL3M%2Faz1pbmRpYQ%3D%3D%26form%3DWSBSTK%26cvid%3D7d3f9448e5de4260b68819b9887a9558%26rtk%3DSpSsrrKyXsxfoGahqv98I%252Fi3xOUBG9SnOILgundIYa8%252F1q%252Ffzsod5efeoSd94FDq";
8993

9094

9195
if (args.Length < 2)

0 commit comments

Comments
 (0)