Skip to content

Instantly share code, notes, and snippets.

View voodoocode's full-sized avatar

ɥɔɐ⅂ ɐɥɔsɐS voodoocode

View GitHub Profile
@voodoocode
voodoocode / Opens external links on feddit in new tab
Last active June 27, 2023 09:01
Checks page for url change, then add target blank attribute to all external links
@voodoocode
voodoocode / input.scss
Created February 4, 2021 09:39
Generated by SassMeister.com.
// remove space from string
@function str-replace($string, $search, $replace) {
$index: str-index($string, $search);
@if $index {
@return str-slice($string, 1, $index - 1) + $replace +
str-replace(
str-slice($string, $index + str-length($search)),
$search,
$replace
@voodoocode
voodoocode / input.scss
Last active February 4, 2021 09:45
Generated by SassMeister.com.
// remove space from string
@function str-replace($string, $search, $replace) {
$index: str-index($string, $search);
@if $index {
@return str-slice($string, 1, $index - 1) + $replace +
str-replace(
str-slice($string, $index + str-length($search)),
$search,
$replace
@voodoocode
voodoocode / input.scss
Created February 4, 2021 09:43
Generated by SassMeister.com.
// remove space from string
@function str-replace($string, $search, $replace) {
$index: str-index($string, $search);
@if $index {
@return str-slice($string, 1, $index - 1) + $replace +
str-replace(
str-slice($string, $index + str-length($search)),
$search,
$replace
@voodoocode
voodoocode / input.scss
Created February 4, 2021 09:41
Generated by SassMeister.com.
$teaser-colors: (
"123": (
"selector": "#anchor-teaser123",
"type": "landingpageElement-anchor",
"bg-color": "green",
"text-color": "#ffffff"
),
"456": (
"selector": "#anchor-teaser456",
"type": "landingpageElement-anchor",
@voodoocode
voodoocode / input.scss
Created February 4, 2021 09:38
Generated by SassMeister.com.
// remove space from string
@function str-replace($string, $search, $replace) {
$index: str-index($string, $search);
@if $index {
@return str-slice($string, 1, $index - 1) + $replace +
str-replace(
str-slice($string, $index + str-length($search)),
$search,
$replace
@voodoocode
voodoocode / input.scss
Created February 4, 2021 09:25
Generated by SassMeister.com.
$teaser-colors: (
"123": (
"selector": "#anchor-teaser123",
"type": "landingpageElement-anchor",
"bg-color": "green",
"text-color": "#efefef"
),
"456": (
"selector": "#anchor-teaser456",
"type": "landingpageElement-anchor",
// Mixin to quickly apply accessible hiding to elements.
@mixin hidden-visually() {
border: 0 !important;
clip: rect(0 0 0 0) !important;
clip-path: inset(50%) !important;
height: 1px !important;
margin: -1px !important;
overflow: hidden !important;
padding: 0 !important;
position: absolute !important;
@voodoocode
voodoocode / bookmarklet.js
Last active February 28, 2018 12:35
Bookmarklet to remove Speigel Online adblocker-blocker message
javascript:(function()%7B%24('%23wrapper-content').css(%7Bopacity%3A%201%2Cfilter%3A%20'none'%2CpointerEvents%3A%20'all'%7D)%3B%24('.ua-detected').hide()%7D)()
@voodoocode
voodoocode / atom-vertical-file-tabs.less
Last active September 26, 2017 14:45 — forked from jasesmith/atom-vertical-file-tabs.less
For vertically stacked open file tabs, put this in your `./atom/styles.less`
atom-workspace-axis.vertical atom-pane {
flex-direction: row-reverse;
.tab-bar {
box-shadow: inset -1px 0 0 #181a1f;
resize: horizontal;
height: auto;
display: block;
padding-right: 1px;
padding-bottom: 3em;
min-width: 14em;