diff options
Diffstat (limited to '')
-rwxr-xr-x | magni.py | 4 | ||||
-rw-r--r-- | template.jinja2 | 22 |
2 files changed, 23 insertions, 3 deletions
@@ -1,6 +1,6 @@ #!/usr/bin/env python """Magni.""" -# HTTPS_PROXY=socks5h://127.0.0.1:9995 ./magni.py --url https://chapmanganato.com/manga-dt980702/chapter-184 +# HTTPS_PROXY=socks5h://127.0.0.1:9094 ./magni.py --url https://chapmanganato.com/manga-dt980702/chapter-184 import argparse import asyncio @@ -28,7 +28,7 @@ class Argparser: # pylint: disable=too-few-public-methods "-u", type=str, help="the url to the page containing the images", - default=False, + default="", ) self.parser.add_argument( "--method", diff --git a/template.jinja2 b/template.jinja2 index 1ba2f40..0c6ede3 100644 --- a/template.jinja2 +++ b/template.jinja2 @@ -5,12 +5,32 @@ <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>{% block title %}{% endblock %}</title> + <style> + img { + filter: sepia(1) brightness(.5) contrast(1) saturate(.6); + } + + img:hover { + filter: none; + } + + .container-chapter-reader { + background-color: #000000; + } + + .center { + display: block; + margin-left: auto; + margin-right: auto; + width: 100%; + } + </style> </head> <body style="font-size:14px;"> <p align="center"> <div> {% for image in image_list %} - <img src={{image}} alt="" align="middle"> + <img src={{image}} alt="" align="middle" class="center"> {% endfor %} </div> </p> |