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

Commit b320151

Browse files
committed
Update
1 parent 9eaffc3 commit b320151

4 files changed

Lines changed: 34 additions & 23 deletions

File tree

Bloxstrap/Properties/PublishProfiles/FolderProfile.pubxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<PublishDir>C:\Users\freew\Documents\GitHub\Voidstrap\Voidstrap</PublishDir>
88
<PublishProtocol>FileSystem</PublishProtocol>
99
<_TargetId>Folder</_TargetId>
10-
<TargetFramework>net8.0-windows7.0</TargetFramework>
10+
<TargetFramework>net10.0-windows8.0</TargetFramework>
1111
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
1212
<SelfContained>false</SelfContained>
1313
</PropertyGroup>

Bloxstrap/UI/Elements/ContextMenu/UIAnime.xaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
<shell:WindowChrome
1818
ResizeBorderThickness="6"
1919
CaptionHeight="0"
20-
CornerRadius="8"
20+
CornerRadius="4"
2121
GlassFrameThickness="0"
2222
UseAeroCaptionButtons="False"/>
2323
</shell:WindowChrome.WindowChrome>
2424

2525
<Border x:Name="MainBorder"
26-
CornerRadius="8"
27-
Padding="8">
26+
CornerRadius="4"
27+
Padding="4">
2828
<Border.Background>
2929
<LinearGradientBrush StartPoint="1,1" EndPoint="0,0">
3030
<GradientStop Offset="0.0" Color="#CC1E1E1E"/>

Bloxstrap/UI/Elements/ContextMenu/UIAnime.xaml.cs

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -95,18 +95,21 @@ private async void InitializeWebView()
9595

9696
core.Settings.AreDefaultScriptDialogsEnabled = false;
9797
core.Settings.AreDefaultContextMenusEnabled = false;
98+
99+
#if DEBUG
98100
core.Settings.AreDevToolsEnabled = true;
101+
#else
102+
core.Settings.AreDevToolsEnabled = false;
103+
#endif
99104

100-
// all the stuff I found in this website go here that are bad!
101105
string css = @"
102-
#ads, .ad-container, .popup, .modal, .banner, .overlay,
103-
.promo, .promotion, .deal-banner, .video-ad, .advertisement,
104-
.nsfw, .hentai, .adult, .lust-goddess, .porn-content, .sex-content {
105-
display: none !important;
106-
}
107-
iframe { width:100% !important; height:100% !important; border:none !important; }
108-
* { scroll-behavior: smooth !important; }
109-
";
106+
#ads, .ad-container, .popup, .modal, .banner, .overlay,
107+
.promo, .promotion, .deal-banner, .video-ad, .advertisement {
108+
display: none !important;
109+
}
110+
iframe { width:100% !important; height:100% !important; border:none !important; }
111+
* { scroll-behavior: smooth !important; }
112+
";
110113

111114
string injectCssScript = $@"
112115
let style = document.createElement('style');
@@ -137,13 +140,20 @@ function sendEpisode() {
137140
// block any (IF SO)
138141
string[] blockedKeywords = new string[]
139142
{
140-
"ads","doubleclick","googlesyndication","promo","banner","deal",
141-
"video-ad","advertisement","porn","hentai","lust","nsfw",
142-
"adult","sex","goddess","noozy.tv",
143-
"https://piccdn.net/blank-728x90-aniw.gif"
143+
"ads",
144+
"doubleclick",
145+
"googlesyndication",
146+
"promo",
147+
"banner",
148+
"deal",
149+
"video-ad",
150+
"advertisement",
151+
"noozy.tv",
152+
"https://piccdn.net/blank-728x90-aniw.gif"
144153
};
145154

146-
core.AddWebResourceRequestedFilter("*", CoreWebView2WebResourceContext.All);
155+
core.AddWebResourceRequestedFilter("*", CoreWebView2WebResourceContext.Script);
156+
core.AddWebResourceRequestedFilter("*", CoreWebView2WebResourceContext.Image);
147157
core.WebResourceRequested += (sender, args) =>
148158
{
149159
string uri = args.Request.Uri.ToLower();
@@ -468,8 +478,8 @@ await Dispatcher.InvokeAsync(() =>
468478
else
469479
{
470480
MainGrid.RowDefinitions[1].Height = new GridLength(40);
471-
MainBorder.Padding = new Thickness(8);
472-
MainBorder.CornerRadius = new CornerRadius(8);
481+
MainBorder.Padding = new Thickness(4);
482+
MainBorder.CornerRadius = new CornerRadius(4);
473483

474484
Left = _prevLeft;
475485
Top = _prevTop;

Bloxstrap/Voidstrap.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<DebugType>none</DebugType>
55
<DebugSymbols>false</DebugSymbols>
66
<OutputType>WinExe</OutputType>
7-
<TargetFramework>net8.0-windows7.0</TargetFramework>
7+
<TargetFramework>net10.0-windows8.0</TargetFramework>
88
<Nullable>enable</Nullable>
99
<UseWPF>true</UseWPF>
1010
<UseWindowsForms>True</UseWindowsForms>
1111
<ApplicationIcon>Voidstrap.ico</ApplicationIcon>
12-
<Version>1.1.0.1</Version>
13-
<FileVersion>1.1.0.1</FileVersion>
12+
<Version>1.1.0.2</Version>
13+
<FileVersion>1.1.0.2</FileVersion>
1414
<ApplicationManifest>app.manifest</ApplicationManifest>
1515
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1616
<RootNamespace>Voidstrap</RootNamespace>
@@ -41,6 +41,7 @@
4141
<DebugType>None</DebugType>
4242
<DebugSymbols>false</DebugSymbols>
4343
<StartupObject></StartupObject>
44+
<SupportedOSPlatformVersion>8.0</SupportedOSPlatformVersion>
4445
</PropertyGroup>
4546

4647
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

0 commit comments

Comments
 (0)