Skip to content

Instantly share code, notes, and snippets.

@zephyrer
zephyrer / tumblr-dl.user.js
Created March 6, 2018 05:38 — forked from christophemarois/tumblr-dl.user.js
Userscript that download currently viewed photo on Tumblr by typing 'dl'. Install [Grease/Tamper]Monkey and click "Raw" below to install.
// ==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() {
@zephyrer
zephyrer / example.xml
Created March 6, 2018 05:38 — forked from zuphilip/example.xml
OpenSearch Example
<?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}&amp;search_offset={startIndex}&amp;output=Atom" type="application/atom+xml"/>
@zephyrer
zephyrer / bvtest.py
Created April 2, 2020 16:12 — forked from abc1763613206/bvtest.py
BVID Validate
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',
@zephyrer
zephyrer / gmailCleanup.js
Created February 10, 2021 12:47 — forked from gabmontes/gmailCleanup.js
Google Apps script to cleanup messages from GMail.
// 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;