Skip to content

Commit

Permalink
Uploaded source code
Browse files Browse the repository at this point in the history
  • Loading branch information
CatboyCoding committed Feb 13, 2020
1 parent f08f625 commit a6b1bc3
Show file tree
Hide file tree
Showing 31 changed files with 346,006 additions and 0 deletions.
144 changes: 144 additions & 0 deletions DefaultMod/DefaultMod.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{B28CF25D-843C-45B6-AEF1-0A117F1852F5}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DefaultMod</RootNamespace>
<AssemblyName>GooseMemz</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\..\..\..\OneDrive\Skrivbord\goose\Assets\Mods\GooseMemz\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Drawing" />
<Reference Include="System.Web" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="GiftTask.cs" />
<Compile Include="ModMain.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Words.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\GooseModdingAPI\GooseModdingAPI.csproj">
<Project>{f0849c98-e0df-47a4-944e-377efac303f1}</Project>
<Name>GooseModdingAPI</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<SubType>Designer</SubType>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="Resources\Download1.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Download2.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Download3.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Download4.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Download5.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Download6.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Download7.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Download8.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Download9.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\Download10.gif" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\annoyingad.gif" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\fBKu2l8.gif" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\giphy.gif" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\source.gif" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\U5du4q1VLnS9SNs31QJzXbia8hxBHfP.gif" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\unnamed.gif" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\unnamed.jpg" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>del *.pdb &amp;&amp; del GooseModdingAPI.dll
C:\Users\carol\OneDrive\Skrivbord\goose\GooseDesktop.exe</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
68 changes: 68 additions & 0 deletions DefaultMod/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

126 changes: 126 additions & 0 deletions DefaultMod/Form1.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;

namespace DefaultMod {
public partial class Form1 : Form {
Random rnd = new Random();
List<string> words = Words.Wordlist;

public Dictionary<string, Bitmap> images = new Dictionary<string, Bitmap>() {
// Downloads
{"dl_1", Properties.Resources.Download1},
{"dl_2", Properties.Resources.Download2},
{"dl_3", Properties.Resources.Download3},
{"dl_4", Properties.Resources.Download4},
{"dl_5", Properties.Resources.Download5},
{"dl_6", Properties.Resources.Download6},
{"dl_7", Properties.Resources.Download7},
{"dl_8", Properties.Resources.Download8},
{"dl_9", Properties.Resources.Download9},

// Ads
{"ad_1", Properties.Resources.ad1},
{"ad_2", Properties.Resources.ad2},
{"ad_3", Properties.Resources.ad3},
{"ad_4", Properties.Resources.ad4},
{"ad_5", Properties.Resources.ad5},
{"ad_6", Properties.Resources.ad6},
{"ad_7", Properties.Resources.ad7},
};

public List<string> ad = new List<string>() {
"http://howtogobroke.com/",
"https://thisiswhyimbroke.com/",
"https://thatswhyimbroke.co.uk/",
};

public List<string> dl = new List<string>() {
"how 2 remove a virus",
"how to send a virus to my friend",
"minecraft hax download no virus",
"how to get money",
"bonzi buddy download free",
"how to code a virus in visual basic",
"facebook hacking tool free download no virus working 2016",
"how to remove trojan virus",
"how to download memz",
"half life 3 free download",
"john cena midi legit not converted",
"skrillex scay onster an nice sprites midi",
"free antivirus&start=290&filter=0"
};

public Form1() {
InitializeComponent();
}

public void largenUri(ref string url) {
while(url.Length < 2000) {
string q = words[rnd.Next(0, words.Count)];
string a = words[rnd.Next(0, words.Count)];
string h = "?";
if (url.Contains("?")) h = "&";
string prev = url;
url += $"{h+q}={a}";
if (url.Length > 2000) {
url = prev;
return;
}
}
}

public void resizeToFit(ref Bitmap image, bool ad = false) {
try {
double widthScale = 0, heightScale = 0;
if (image.Width != 0)
widthScale = ad ? 500 : 200 / (double)image.Width;
if (image.Height != 0)
heightScale = ad ? 500 : 200 / (double)image.Height;

double scale = Math.Min(widthScale, heightScale);

Size size = new Size((int)(image.Width * scale), (int)(image.Height * scale));
image = new Bitmap(image, size);
} catch {

}
}

private void openUrl(string url) {
largenUri(ref url);
Process.Start(url);
}

private void Form1_Load(object sender, EventArgs e) {
var data = images.ElementAt(rnd.Next(0, images.Count - 1));

string name = data.Key;
Bitmap image = data.Value;
resizeToFit(ref image, name.StartsWith("ad_"));
pictureBox1.Image = image;

pictureBox1.Location = new Point(0, 0);
Size = pictureBox1.Size;

int mx = Screen.PrimaryScreen.Bounds.Width - Size.Width;
int my = Screen.PrimaryScreen.Bounds.Height - Size.Height;

Location = new Point(rnd.Next(0, mx), rnd.Next(0, my));

pictureBox1.MouseDown += (object s, MouseEventArgs m) => {
if (m.Button == MouseButtons.Left) {
if (name.StartsWith("ad_")) {
openUrl(ad[rnd.Next(0, ad.Count - 1)]);
} else {
openUrl("http://google.co.ck/search?q=" + dl[rnd.Next(0, dl.Count - 1)].Replace(" ", "+"));
}
Close();
}
};
}
}
}
Loading

0 comments on commit a6b1bc3

Please sign in to comment.