Skip to content

Instantly share code, notes, and snippets.

View DioVayne's full-sized avatar

Dio Vayne DioVayne

View GitHub Profile
@DioVayne
DioVayne / fancybox jquery .txt
Created July 4, 2013 09:25
fix for old plugins using $.browser
http://stackoverflow.com/questions/14344289/fancybox-doesnt-work-with-jquery-v1-9-0-f-browser-is-undefined-cannot-read
replace $.browser.msie by navigator.userAgent.match(/msie [6]/i)
OF?
https://raw.github.com/house9/jquery-iframe-auto-height/master/release/jquery.browser.js
@DioVayne
DioVayne / equalHeight.js
Created September 25, 2013 11:16
//kolommen even hoog maken bv. equalHeight($('.content').find('article'));
function equalHeight(group) {
var tallest = 0;
if(group.length){
group.each(function () {
var thisHeight = $(this).height();
if (thisHeight > tallest) {
tallest = thisHeight;
}
});
group.height(tallest);
@DioVayne
DioVayne / facebook like.html
Created November 13, 2013 07:23
Alternatief facebook like
<!-- Facebook Like -->
<div id="fb-root"></div>
<script>(function (d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div style='float:left;'>
@DioVayne
DioVayne / box-sizing.css
Created November 20, 2013 08:40
box sizing FTW
*, *:before, *:after {
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box; /* Opera/IE 8+ */
}
@DioVayne
DioVayne / arrow.css
Created November 27, 2013 09:46
Css arrow
div:after{
content:'';
border-style: solid;
border-width: 9px;
border-color: #f7f7f7 rgba(255,255,255,0) rgba(255,255,255,0) rgba(255,255,255,0);
position:absolute;
right:10px;
top:50%;
margin-top:-4px;
}
@DioVayne
DioVayne / .master
Last active December 31, 2015 02:58
Hoe pagina's site-wide te koppelen
<agn:Paragraphs ID="parRechterKolom" Location="[#rechterKolom#]" runat="server" LoadType="Manual">
<Header>
<div class="rechterKolom">
</Header>
<Paragraph/>
<Footer>
</div>
</Footer>
</agn:Paragraphs>
// ==UserScript==
// @name What CD video/ last.fm search
// @namespace http://diovayne.nl/
// @version 0.31
// @description To directly search for video on google of the album or artist on last.fm
// @author Dio Vayne
// @match https://what.cd/*
// @grant none
// ==/UserScript==
@DioVayne
DioVayne / MarktplaatsCleaner.user.js
Last active August 29, 2015 14:24
MarktplaatsCleaner.user.js
// ==UserScript==
// @name Marktplaats Cleaner
// @namespace http://diovayne.nl/
// @version 0.2
// @description Remove commercial adverts on marktplaats
// @author Dio Vayne
// @match http://www.marktplaats.nl/*
// @grant none
// ==/UserScript==
@DioVayne
DioVayne / googlegod.user.js
Last active December 9, 2015 10:45
Google logo changes into God
// ==UserScript==
// @name Google God
// @namespace http://diovayne.nl/
// @version 0.1
// @description Always watching.
// @author Dio Vayne
// @match https://www.google.nl/*
// @grant none
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==
@DioVayne
DioVayne / randomize-content.js
Last active February 18, 2016 13:28
Randomize content and frustrate your design!
// ==UserScript==
// @name Randomize content
// @namespace https://www.blokblok.nl/
// @version 0.4
// @description Frustrate your design!
// @author Dio Vayne
// @match *://*/*
// @grant none
// ==/UserScript==