Let's say you want to host domains first.com and second.com.
Create folders for their files:
| ||youtube.com$domain=~youtube.com # Don't pull youtube JS unless you're using youtube. This breaks | |
| # embedded videos, which is mildly inconveninent, but makes everything much faster. | |
| ||www.gstatic.com$domain=~google.com | |
| ||gstatic.com$domain=~google.com # Don't use gstatic unless you're on Google. This might | |
| # break some things but so far I haven't noticed any problems. | |
| ||accounts.google.com$domain=~google.com # Don't pop up the "log in with google" dialog everywhere. This makes the | |
| # internet feel about 95% less creepy. | |
| ||static.licdn.com$domain=~www.linkedin.com # I was changing my 4 month old child's diaper when they said to me, Dad, | |
| # don't run LinkedIn code if you're not using Linkedin. Here's what that | |
| # taught me about b2b sales. |
| // ==UserScript== | |
| // @name GC Tour | |
| // @namespace https://gist.github.com/DieBatzen/5814dc7368c1034470c8/ | |
| // @version 4.38 | |
| // @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') |