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
const findClass = classname => tumblr.getCssMap() | |
.then(Object.entries) | |
.then(entries => entries.filter(([name, classes]) => classes.includes(classname))) | |
.then(Object.fromEntries); |
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
/* ==UserStyle== | |
@name No Trends | |
@namespace https://gist.github.com/AprilSylph | |
@version 1.0.0 | |
@description Hides the "What's happening" sidebar section on EN Twitter | |
@author AprilSylph | |
==/UserStyle== */ | |
@-moz-document domain("twitter.com") { | |
[aria-label="Timeline: Trending now"] { | |
display: none; |
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
/** | |
* @param {...Object[]} arrays - one or more arrays | |
* @return {Object[]} The Cartesian product of the arrays | |
*/ | |
const cartesian = (...arrays) => { | |
let product = arrays.shift().map(x => [x]); | |
for (const currentArray of arrays) { | |
const newProduct = []; |
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
const getResponseText = response => { | |
if (response.ok) { | |
return response.text(); | |
} else { | |
throw Object.assign(new Error(response.status), {response}); | |
} | |
}; | |
const getTumblrFormKey = () => fetch('/neue_web/iframe/new/text') | |
.then(getResponseText) |
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
h1, h2, h3, h4, h5, h6 { | |
font-size: 1em !important; | |
font-weight: normal !important; | |
} | |
h1::before { content: "# " !important; } | |
h2::before { content: "## " !important; } | |
h3::before { content: "### " !important; } | |
h4::before { content: "#### " !important; } | |
h5::before { content: "##### " !important; } |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Redirecting...</title> | |
<script> | |
if (location.pathname !== "/customize_preview_receiver.html") { | |
location.replace("{TARGETURL}"); | |
} | |
</script> | |
<meta name="description" content="This is a redirect to {TARGETURL}."/> |
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
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAOSCAYAAACMcrQWAAAgAElEQVR4nO3dbayu6VnW8WN2GQcoVKpCpDUqLQo12Jr4WkCoVokGFHyJSY2xUWJCjBWipdU00WXFSqJGCk1rjaVQhaZtKiFVDMRETRSSWiOtYMDYBkK0xFHTlplxOjPs8cPaa7pnZu+118vznNd5n/fvn/y+X/f9XNmZY9Ze+0kkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZIkSZKkjferk3xlklcn+ZYkr0/yxiR/P8nbk/xgkvcCAEBj78npf7v+wyRvyul/0/6lJN+c5JVJfl1U3o0kvy3Jty |
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
<!DOCTYPE html> | |
{block:Options} | |
<meta name="image:Image" content="https://static.tumblr.com/2wliono/hy7pfab69/aurora.png"> | |
<meta name="color:Colour" content="#36465d"> | |
<meta name="font:Font" content="Helvetica, Arial, sans-serif"> | |
<meta name="select:Dropdown" content="Example Option 1"> | |
<meta name="select:Dropdown" content="Example Option 2"> | |
<meta name="select:Dropdown" content="Example Option 3"> | |
<meta name="if:Boolean" content="1"> | |
<meta name="text:Text" content="Example Input"> |
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
https://78.media.tumblr.com/tumblr_pb84wkYuTo1rtgc6mo1_1530509782_cover.png |
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
//* TITLE Banned! **// | |
//* VERSION 2.0.1 **// | |
//* DESCRIPTION Changes "Deactivated" labels to 4chan ban labels where appropriate **// | |
//* DEVELOPER AprilSylph **// | |
//* FRAME false **// | |
//* BETA false **// | |
XKit.extensions.banned = new Object({ | |
running: false, |