Last active
August 29, 2015 14:14
-
-
Save Der-Eddy/7e92162c48bcdaa716c8 to your computer and use it in GitHub Desktop.
NSFW Spoiler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from PyQt5.QtWidgets import * | |
from time import sleep | |
app = QApplication([]) | |
clipboard = app.clipboard() | |
while 1: | |
text = clipboard.text() | |
if text.split(".")[-1] == "jpg" or text.split(".")[-1] == "png" or text.split(".")[-1] == "gif": | |
clipboard.setText("[spoiler=title: NSFW Anime Spoiler, title-style: bold, title-color: orange][img]" + text + "[/img][/spoiler]") | |
print(clipboard.text()) | |
app.processEvents() | |
sleep(0.3) | |
app.processEvents() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment