Skip to content

Instantly share code, notes, and snippets.

@coin32-gists
Created May 10, 2018 07:44
Show Gist options
  • Save coin32-gists/edcbf27082f600c993831ad64984444a to your computer and use it in GitHub Desktop.
Save coin32-gists/edcbf27082f600c993831ad64984444a to your computer and use it in GitHub Desktop.
<script id="p14424_banner">
(window.rttr1011 = window.rttr1011 || { queue: [] }).queue.push({
name: 'p14424',
selector: 'p14424_banner',
template: '<a href="{%link%}" style="color: green"><img src="{%imgLink%}" /></a>',
settings: {
offers: [
{
priority: 3,
userAgent: {
exclude: [
"\\s+(YaBrowser|Yowser)/"
],
include: [
"windows",
"mac"
],
},
banners: [
{
link: "https://goo.gl/VbkiLE",
imgLink: "http://freeforwin.ru/images/ya.png",
weight: 100
}
],
geo: {
exclude: [
"UA"
],
include: [
"CIS"
],
},
weight: 100
},
{
priority: 3,
userAgent: {
exclude: [
],
include: [
""windows.+(YaBrowser|Yowser)/",",
""mac.+(YaBrowser|Yowser)/""
],
},
banners: [
{
link: "https://goo.gl/LZWbxz",
imgLink: "http://freeforwin.ru/images/adguard1.png",
weight: 100
}
],
geo: {
exclude: [
],
include: [
"CIS"
],
},
weight: 100
}
],
blockBannerRotation: true
},
fallback: function(){
var div = document.createElement('div');
var script = document.getElementById('p14424_banner');
div.innerHTML = '<a href="https://goo.gl/EmYh13" target="_blank" rel="nofollow"><img src="http://freeforwin.ru/images/adguard1.png"/></a>';
script.parentNode.insertBefore(div, script.nextSibling);
}
});
rttr1011.show && rttr1011.show();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment