mirror of
https://github.com/nadimkobeissi/mkbsd.git
synced 2025-04-20 19:56:32 -04:00
Merge 722b62491e
into 82e50c64f0
This commit is contained in:
commit
269be6d6c8
1 changed files with 10 additions and 1 deletions
11
README.md
11
README.md
|
@ -13,7 +13,7 @@ _Because selling out is bad_
|
||||||
|
|
||||||
## How to use
|
## How to use
|
||||||
|
|
||||||
MKBSD comes in two variants! Node.js and Python.
|
MKBSD comes in three variants! Node.js , Python and Powershell.
|
||||||
|
|
||||||
### Running in Node.js
|
### Running in Node.js
|
||||||
|
|
||||||
|
@ -30,6 +30,15 @@ MKBSD comes in two variants! Node.js and Python.
|
||||||
4. Wait a little.
|
4. Wait a little.
|
||||||
5. All wallpapers are now in a newly created `downloads` subfolder.
|
5. All wallpapers are now in a newly created `downloads` subfolder.
|
||||||
|
|
||||||
|
### Running in Powershell
|
||||||
|
|
||||||
|
1. Copy and paste the following command into your PowerShell window:
|
||||||
|
```powershell
|
||||||
|
New-Item -ItemType Directory -Force -Path ".\downloads" | Out-Null; (Invoke-RestMethod 'https://storage.googleapis.com/panels-api/data/20240916/media-1a-i-p~s').data.PSObject.Properties | Where-Object { $_.Value.dhd } | ForEach-Object -Begin { $i = 0 } -Process { $url = $_.Value.dhd; $ext = if ($url -match '\.(jpg|jpeg|png|gif)') { $matches[1] } else { 'jpg' }; Invoke-WebRequest $url -OutFile (".\downloads\image_" + $i++ + "." + $ext); Start-Sleep -Milliseconds 250 }
|
||||||
|
```
|
||||||
|
2. Wait a little.
|
||||||
|
3. All wallpapers are now in a newly created `downloads` subfolder.
|
||||||
|
|
||||||
## FAQ
|
## FAQ
|
||||||
|
|
||||||
### Q: What's the story behind this?
|
### Q: What's the story behind this?
|
||||||
|
|
Loading…
Add table
Reference in a new issue