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
| // ==UserScript== | |
| // @name Tumblr Download | |
| // @version 0.2 | |
| // @description Download tumblr photos by typing 'dl' when viewing them | |
| // @author @christophemarois | |
| // @match https://www.tumblr.com/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> | |
| <ShortName>MADOC </ShortName> | |
| <LongName>MADOC </LongName> | |
| <Description>Search engine full name and summary</Description> | |
| <Contact>madoc@bib.uni-mannheim.de</Contact> | |
| <Developer>http://www.eprints.org/</Developer> | |
| <OutputEncoding>UTF-8</OutputEncoding> | |
| <InputEncoding>UTF-8</InputEncoding> | |
| <Url indexOffset="0" template="https://ub-madoc.bib.uni-mannheim.de/cgi/search/simple?q={searchTerms}&search_offset={startIndex}&output=Atom" type="application/atom+xml"/> |
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 requests | |
| import json | |
| import random | |
| Back_URL = 'https://api.bilibili.com/x/web-interface/archive/stat?aid=' | |
| headers = { | |
| 'Cookie': "Replace Me With REAL COOKIE" , | |
| 'Pragma': 'no-cache', |
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
| // Inspired in http://www.johneday.com/422/time-based-gmail-filters-with-google-apps-script | |
| // Deletes old marked conversations | |
| function cleanUp() { | |
| var delayDays = 5; // # of days before messages are moved to trash | |
| var label = "Delete me"; // label to identify the messages | |
| var maxDate = new Date(Date.now() - delayDays * 24 * 60 * 60 * 1000); | |
| var userLabel = GmailApp.getUserLabelByName(label); | |
| if (!userLabel) { | |
| return; |