Hold the text to see the magic !!!
This file contains 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
// openvideo.js - Lone Instagram video extractor. | |
const openVideo = (() => { | |
location.hostname === 'www.instagram.com' | |
&& location.pathname.includes('/p/') ? ( | |
Promise.resolve(document.querySelector('._7thjo').click()) | |
.then(() => | |
window.location = document.querySelector('video').src | |
).catch(() => window.alert('We need a refactor, maybe ;)')) | |
) : window.alert('Oops. You\'re prolly not on the right page.') | |
})() |
This file contains 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
atom-text-editor { | |
-webkit-font-feature-settings: "liga" off, "calt" off; /* very mandatory */ | |
text-rendering: optimizeLegibility; /* cool */ | |
font-weight: normal; /* for specificity */ | |
line-height: 1.7; /* feel free to adjust */ | |
} | |
.syntax--doctype, .syntax--entity.syntax--other.syntax--attribute-name, .syntax--source.syntax--js.syntax--jsx > .syntax--keyword.syntax--control.syntax--flow.syntax--js, | |
.syntax--punctuation.syntax--section.syntax--embedded, .syntax--keyword:not(.syntax--logical):not(.syntax--arithmetic):not(.syntax--bitwise):not(.syntax--increment):not(.syntax--ternary):not(.syntax--comparison), | |
.syntax--meta.syntax--structure.syntax--dictionary.syntax--key.syntax--json, | |
.syntax--entity.syntax--name.syntax--tag.syntax--yaml, |
NewerOlder