mirror of
https://github.com/mrpond/BlockTheSpot.git
synced 2025-05-11 18:36:47 +02:00
Fix regex 1.85 (#375)
This commit is contained in:
parent
f2f76b5d46
commit
0b76f48e8f
1 changed files with 3 additions and 3 deletions
|
@ -320,11 +320,11 @@ if ($RemoveAdPlaceholder)
|
|||
# With ".ads.leaderboard.isEnabled&&false" + separator
|
||||
$xpuiContents = $xpuiContents -replace '(\.ads\.leaderboard\.isEnabled)(}|\))', '$1&&false$2'
|
||||
|
||||
# Delete ".createElement(XX,{(spec:X),?onClick:X,className:XX.X.UpgradeButton}),X()"
|
||||
$xpuiContents = $xpuiContents -replace '\.createElement\([^.,{]+,{(?:spec:[^.,]+,)?onClick:[^.,]+,className:[^.]+\.[^.]+\.UpgradeButton}\),[^.(]+\(\)', ''
|
||||
# Disable Upgrade button
|
||||
$xpuiContents = $xpuiContents -replace '.\>\=1024', ' 1!=1 '
|
||||
|
||||
# Disable Premium NavLink button
|
||||
$xpuiContents = $xpuiContents -replace 'return (.\(\).createElement\("a".+?"noopener nofollow")', '$1'
|
||||
$xpuiContents = $xpuiContents -replace '((?:"a"))\S+noopener nofollow.+?,.\)', '$1)'
|
||||
|
||||
if ($fromZip)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue