GithubHelp home page GithubHelp logo

clarkb7 / removewindowslockscreenads Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 1.0 127 KB

Remove Windows Lock Screen ads while keeping the Spotlight image backgrounds

License: MIT License

Python 94.88% PowerShell 5.12%
windows-spotlight remove-ads windows-lockscreen

removewindowslockscreenads's Introduction

Build 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

removewindowslockscreenads's People

Contributors

clarkb7 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

clayne

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.