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
| import argparse | |
| import os | |
| import re | |
| import threading | |
| import urllib | |
| import requests | |
| import sys | |
| urls = [] | |
| global stop |
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
| http://www.daniweb.com/software-development/python/tutorials/238590/simple-threading-tutorial | |
| http://effbot.org/zone/thread-synchronization.htm | |
| http://www.laurentluce.com/posts/python-threads-synchronization-locks-rlocks-semaphores-conditions-events-and-queues/ | |
| Add a new thread | |
| Thread is scanned, and every image is added to a temp list (?) | |
| Once the temp list if filled, lock global list | |
| add links | |
| release lock |
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
| function GM_openInTab(_url) { | |
| self.port.emit("GM_openInTab", _url); | |
| }; | |
| function GM_setValue(_name, _value) { | |
| localStorage[_name] = _value; | |
| }; | |
| function GM_getValue(_name, _default) { | |
| if (localStorage[_name] === null && _default === null) return undefined; |
NewerOlder