Skip to content

Instantly share code, notes, and snippets.

@rafops
Created December 20, 2012 23:35
Show Gist options
  • Save rafops/4349566 to your computer and use it in GitHub Desktop.
Save rafops/4349566 to your computer and use it in GitHub Desktop.
<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('/$')) {
_taboola.push({ article: 'auto' });
} else if(document.URL.match('/canal/')) {
_taboola.push({ home: 'auto' });
}
</script><script type="text/javascript" src="http://cdn.taboolasyndication.com/libtrc/sambatech-gazetaesportiva/loader.js">
</script>
@anthonycaccese
Copy link

specific changes by line number

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

line 14 should change to...
_taboola.push({ home: 'auto' });

line 16 should change to...
_taboola.push({ category: 'auto' });

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