https://github.com/phocks/simple-article-takeover
Takeover PL pages
https://github.com/phocks/simple-article-takeover
Last synced: 11 months ago
JSON representation
Takeover PL pages
- Host: GitHub
- URL: https://github.com/phocks/simple-article-takeover
- Owner: phocks
- License: mit
- Created: 2021-04-28T05:50:16.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-05-09T06:02:04.000Z (about 3 years ago)
- Last Synced: 2025-03-06T12:52:34.322Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 2.02 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simPLe-article-takeover
Take over PL (Presentation Later) articles full-width with a single `div`.
eg.

## Usage
In console:
```bash
$ npm install simple-article-takeover
```
In JS:
```javascript
import takeover from "simple-article-takeover"
// In an async function
await takeover()
// ... other stuff happens
// Can set a custom class on the div
or await takeover({ addClass: "article-container" })
```
NOTE: Doesn't seem to work anymore on Presentation Layer running Next.js