Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

JavaScript

safar and chrome hack

1
2
3
4
5
@media screen and (-webkit-min-device-pixel-ratio:0) {
.dealsTabNav{
		margin-left: -1px;
	}
}
https://snipt.net/embed/d8716140f27e048eaab1ecf2a1cd4b95/
https://snipt.net/raw/d8716140f27e048eaab1ecf2a1cd4b95/
d8716140f27e048eaab1ecf2a1cd4b95
js
JavaScript
5
2016-12-06T13:52:39
True
False
False
/api/public/snipt/36420/
safarchormeopera-hack
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="err">@</span><span class="nx">media</span> <span class="nx">screen</span> <span class="nx">and</span> <span class="p">(</span><span class="o">-</span><span class="nx">webkit</span><span class="o">-</span><span class="nx">min</span><span class="o">-</span><span class="nx">device</span><span class="o">-</span><span class="nx">pixel</span><span class="o">-</span><span class="nx">ratio</span><span class="o">:</span><span class="mi">0</span><span class="p">)</span> <span class="p">{</span> </span><span id="L-2"><a name="L-2"></a><span class="p">.</span><span class="nx">dealsTabNav</span><span class="p">{</span> </span><span id="L-3"><a name="L-3"></a> <span class="nx">margin</span><span class="o">-</span><span class="nx">left</span><span class="o">:</span> <span class="o">-</span><span class="mi">1</span><span class="nx">px</span><span class="p">;</span> </span><span id="L-4"><a name="L-4"></a> <span class="p">}</span> </span><span id="L-5"><a name="L-5"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
chrome, hack, safari

CSS

Remove Safari's default styling from the inputs.

1
2
3
input, textarea, select {
   -webkit-appearance: none;
}
https://snipt.net/embed/5c73777d42a1aacb2da5eba7f7299249/
https://snipt.net/raw/5c73777d42a1aacb2da5eba7f7299249/
5c73777d42a1aacb2da5eba7f7299249
css
CSS
3
2016-12-10T08:24:11
True
False
False
/api/public/snipt/19574/
remove-safaris-default-styling-from-the-inputs
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="nt">input</span><span class="o">,</span> <span class="nt">textarea</span><span class="o">,</span> <span class="nt">select</span> <span class="p">{</span> </span><span id="L-2"><a name="L-2"></a> <span class="o">-</span><span class="n">webkit</span><span class="o">-</span><span class="n">appearance</span><span class="o">:</span> <span class="nb">none</span><span class="p">;</span> </span><span id="L-3"><a name="L-3"></a><span class="p">}</span> </span></pre></div> </td></tr></table>
css, inputs, safari, styling

Bash

safari tap

defaults write com.apple.Safari TargetedClicksCreateTabs -bool true
https://snipt.net/embed/53b14eb1539d98899bc27179f5697447/
https://snipt.net/raw/53b14eb1539d98899bc27179f5697447/
53b14eb1539d98899bc27179f5697447
bash
Bash
1
2016-12-10T06:36:52
True
False
False
/api/public/snipt/12900/
safari-tap
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>defaults write com.apple.Safari TargetedClicksCreateTabs -bool <span class="nb">true</span> </span></pre></div> </td></tr></table>
safari, tap

HTML

Browser/Engine specific styles

1
2
3
4
-moz-border-top: 5px
-webkit-border-top: 5px
-k8-border-top: 5px
-khtml-border-top: 5px
https://snipt.net/embed/a3c3510b5aa8d4392aa3eb84fc69fc2d/
https://snipt.net/raw/a3c3510b5aa8d4392aa3eb84fc69fc2d/
a3c3510b5aa8d4392aa3eb84fc69fc2d
html
HTML
4
2016-12-06T20:23:11
True
False
False
/api/public/snipt/10009/
browserengine-specific-styles
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>-moz-border-top: 5px </span><span id="L-2"><a name="L-2"></a>-webkit-border-top: 5px </span><span id="L-3"><a name="L-3"></a>-k8-border-top: 5px </span><span id="L-4"><a name="L-4"></a>-khtml-border-top: 5px </span></pre></div> </td></tr></table>
browsers, hacks, ie, mozilla, safari, tricks

Bash

show the safari cache

dscacheutil -cachedump -entries Host
https://snipt.net/embed/260a8b231bf4c2ae42703810553808b9/
https://snipt.net/raw/260a8b231bf4c2ae42703810553808b9/
260a8b231bf4c2ae42703810553808b9
bash
Bash
1
2016-12-06T20:24:00
True
False
False
/api/public/snipt/7696/
show-the-safari-cache
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>dscacheutil -cachedump -entries Host </span></pre></div> </td></tr></table>
bash, cache, safari, security
Copyrighted, illegal, or inappropriate content? Email [email protected].