diff --git a/src/Modify.cpp b/src/Modify.cpp index e4ba2e0..85b4a7f 100644 --- a/src/Modify.cpp +++ b/src/Modify.cpp @@ -1,4 +1,4 @@ -#include "pch.h" +#include "pch.h" /* * @@ -126,9 +126,9 @@ int cef_zip_reader_read_file_hook(void* self, void* buffer, size_t bufferSize) #endif if (file_name == L"home-hpto.css") { - const auto hpto = PatternScanner::ScanFirst(reinterpret_cast(buffer), bufferSize, L".WiPggcPDzbwGxoxwLWFf{-webkit-box-pack:center;-ms-flex-pack:center;display:-webkit-box;display:-ms-flexbox;display:flex;"); + const auto hpto = PatternScanner::ScanFirst(reinterpret_cast(buffer), bufferSize, L".WiPggcPDzbwGxoxwLWFf{display:-webkit-box;display:-ms-flexbox;display:flex;"); if (hpto.is_found()) { - if (hpto.write(".WiPggcPDzbwGxoxwLWFf{-webkit-box-pack:center;-ms-flex-pack:center;display:-webkit-box;display:-ms-flexbox;display:none;")) { + if (hpto.write(".WiPggcPDzbwGxoxwLWFf{display:-webkit-box;display:-ms-flexbox;display:none;")) { Logger::Log(L"hptocss patched!", Logger::LogLevel::Info); } else { @@ -237,10 +237,10 @@ int cef_zip_reader_read_file_hook(void* self, void* buffer, size_t bufferSize) Logger::Log(L"sp://ads/v1/ads/ - failed not found!", Logger::LogLevel::Error); } - const auto premium_free = PatternScanner::ScanFirst(reinterpret_cast(buffer), bufferSize, L"\"free\"===e.session?.productState?.catalogue?.toLowerCase(),r=e=>\"premium\"===e.session?.productState?.catalogue?.toLowerCase()"); + const auto premium_free = PatternScanner::ScanFirst(reinterpret_cast(buffer), bufferSize, L"e.session?.productState?.catalogue?.toLowerCase()"); if (premium_free.is_found()) { //Print(L"{}", premium_free.read()); - if (premium_free.write("\"premium\"===e.session?.productState?.catalogue?.toLowerCase(),r=e=>\"free\"===e.session?.productState?.catalogue?.toLowerCase()")) { + if (premium_free.write("\"blockthespot-team-says-meow-meow-meow-meow-meow\"")) { Logger::Log(L"premium patched!", Logger::LogLevel::Info); } else {