Skip to main content

Remove Windows lock screen ads/Spotlight ads while keeping the rotating Spotlight image backgrounds.

Project description

PyPI version

Remove Windows lock screen ads/Spotlight Ads

Remove Windows lock screen ads/Spotlight ads while keeping the rotating Spotlight image backgrounds. The effect is immediate, there is no restart or logoff required.

This script can be run by any user, no Administrator privileges are required.

This script parses the JSON configuration for Spotlight, located in %LOCALAPPDATA%, to remove the buzzfeed-esque ads that clutter the lock screen.

By default the image credits are kept. Pass --remove-credits if you would like them removed, too.

Installation

If you have Python installed

python -m pip install --user RemoveWindowsLockScreenAds
pythonw -m RemoveWindowsLockScreenAds --install

If you don't want to install Python, download the standalone installer, press WindowsKey+r, then paste and run

%USERPROFILE%\Downloads\RemoveWindowsLockScreenAds.noconsole.exe --install

When run with pythonw or RemoveWindowsLockScreenAds.noconsole.exe there is no console output. However, --install and --uninstall will log to %TEMP%\RemoveWindowsLockScreenAds.install.log.

You can enable and disable RemoveWindowsLockScreenAds from the Startup tab in Windows Task Manager.

Try it out without modifying anything

Python

python -m RemoveWindowsLockScreenAds --once --dry-run --verbose

Standalone console program

RemoveWindowsLockScreenAds.console.exe --once --dry-run --verbose

Detailed Usage

usage: RemoveWindowsLockScreenAds.py [-h] [-v] [--dry-run] [--remove-credits] (--once | --watch | --install | --uninstall) [path]

positional arguments:
  path              Path to file or directory to remove lock screen ads from.

optional arguments:
  -h, --help        show this help message and exit
  -v, --verbose     Enable verbose logging
  --dry-run         Process and log but do not modify files
  --remove-credits  Remove the image credits box

actions:
  --once            Remove ads from file(s) in path
  --watch           Continue running, watch directory for new Spotlight files, and remove ads from them
  --install         Start in --watch mode on login
  --uninstall       Remove installed files and login task

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

RemoveWindowsLockScreenAds-0.3.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

RemoveWindowsLockScreenAds-0.3-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file RemoveWindowsLockScreenAds-0.3.tar.gz.

File metadata

  • Download URL: RemoveWindowsLockScreenAds-0.3.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.3

File hashes

Hashes for RemoveWindowsLockScreenAds-0.3.tar.gz
Algorithm Hash digest
SHA256 d0b83de1d6cf32a9ba935b7e9d4087d51af5704532eb51ad6ffe6cb379c4fde8
MD5 1324c848fa0263e7f612442a3eda919f
BLAKE2b-256 d7ef1e0cc6443c5b198ec34806657f39b5a962db870b5f74e4451a7ab1fbb0ab

See more details on using hashes here.

File details

Details for the file RemoveWindowsLockScreenAds-0.3-py3-none-any.whl.

File metadata

  • Download URL: RemoveWindowsLockScreenAds-0.3-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.3

File hashes

Hashes for RemoveWindowsLockScreenAds-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 3ce7747fd873b754e4f388c69ec1f87e462795254dcfc5a5fcc3c1244ce302a6
MD5 9f51eab355859a980ad1909a39902456
BLAKE2b-256 be80ebc6d78b7116330185b3651083ed26a440a7918d142b1be96cb1f05ff475

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page