Let's say you want to host domains first.com
and second.com
.
Create folders for their files:
# The list below is my current set of uBlock Origin additions. | |
# My criteria are basically, if I think a page is slow I look at | |
# the network tab in devtools, and if I see many megabytes of | |
# javascript shimmed in there I block the server delivering it. | |
# If that changes literally nothing that I see or care about, I | |
# add it to the list. | |
# This breaks (most) youtube embeds, the "log in with google" | |
# popup, and twitter/facebook entirely. It also presents some | |
# usability problems with Google sites (gdocs, etc) that I decided |
// ==UserScript== | |
// @name GC Tour | |
// @namespace https://gist.github.com/DieBatzen/5814dc7368c1034470c8/ | |
// @version 4.36 | |
// @description Cachetour planning made easy. Pick some Caches, sort the list and print it out. Free for all users of geocaching.com! | |
// @author Die Batzen, madd.in | |
// @run-at document-end | |
// @match http*://www.geocaching.com/* | |
// @match https://www.gctour.de/map/show* | |
// @exclude /^https?://www\.geocaching\.com/(login|jobs|careers|promotions|blog|help)/ |
// ==UserScript== | |
// @name GC Tour | |
// @namespace madd.in | |
// @version 2.3 | |
// @build 14271 | |
// @description Cachetour planing made easy. Pick some Caches, sort the list and print it out. Free for all users of geocaching.com! | |
// @run-at document-end | |
// @include http*://www.geocaching.com/* | |
// @include http://gctour*.madd.in/map/show*#gui | |
// @exclude /^https?://www\.geocaching\.com/(login|about|articles)/ |
from PIL import Image, ImageOps | |
import clipboard, photos,webbrowser | |
im=photos.pick_image()#clipboard.get_image | |
if im.size[0] >= im.size[1]: | |
whitespace=((im.size[0]-im.size[1])/2)+250 | |
xbump=250 | |
else: | |
xbump=((im.size[1]-im.size[0])/2)+250 | |
whitespace=250 | |
matted=ImageOps.expand(im,border=(xbump,whitespace),fill='white') |