Skip to content

Instantly share code, notes, and snippets.

@rafops
Created December 20, 2012 23:36
Show Gist options
  • Save rafops/4349574 to your computer and use it in GitHub Desktop.
Save rafops/4349574 to your computer and use it in GitHub Desktop.
<div id="taboola-grid-2x2" style="width:620px; height: 280px; display: none;"></div>
<script type="text/javascript">
window._taboola = window._taboola || [];
if(document.URL.match('/noticia/') && !document.URL.match('/videos-ge')) {
$("#taboola-grid-2x2").show();
_taboola.push({ mode: 'grid-2x2', container: 'taboola-grid-2x2' });
}
</script>
<div id="taboola-grid-2x2" class="taboola-sidebar" style="width:300px; height: 540px; display:none;"></div>
<script type="text/javascript">
window._taboola = window._taboola || [];
if(document.URL.match('/$') || document.URL.match('/canal/')) {
$("div.taboola-sidebar").show();
_taboola.push({ mode: 'grid-2x2', container: 'taboola-grid-2x2' });
}
</script>
<script type="text/javascript">
window._taboola = window._taboola || [];
if(document.URL.match('/videos-ge')) {
var videoId = $('div.genet-media object').attr('id');
_taboola.push({ video: "" + videoId + "", visible: 'false' });
} else if(document.URL.match('/noticia/')) {
_taboola.push({ category: 'auto' });
}
</script>
@anthonycaccese
Copy link

lines 1-8 should be removed

line 15 should change to...
if(document.URL.match('/$') || document.URL.match('/canal/') || document.URL.match('/noticia/')) {

line 27 should change to...
_taboola.push({ article: 'auto' });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment