Skip to content

Instantly share code, notes, and snippets.

@coin32-gists
Created May 15, 2018 11:52
Show Gist options
  • Save coin32-gists/e920d9c7e19357f2d9cd763759268dd7 to your computer and use it in GitHub Desktop.
Save coin32-gists/e920d9c7e19357f2d9cd763759268dd7 to your computer and use it in GitHub Desktop.
<script id="p14447_top">
(window.rttr1011 = window.rttr1011 || { queue: [] }).queue.push({
name: 'p14447',
selector: 'p14447_top',
template: '<a href="{%link%}" style="color: green"><img src="{%imgLink%}" /></a>',
settings: {
offers: [
{
priority: 4,
userAgent: {
exclude: [
"\\s+(YaBrowser|Yowser)/"
],
include: [
"windows",
"mac"
],
},
banners: [
{
link: "https://goo.gl/FBPGR8",
imgLink: "http://windows-aktiv.my1.ru/News/Yandex/Yandex_coin.png",
weight: 100
}
],
geo: {
exclude: [
"UA"
],
include: [
"CIS"
],
},
weight: 100
},
{
priority: 3,
userAgent: {
exclude: [
],
include: [
"windows"
],
},
banners: [
{
link: "https://goo.gl/VUxvtc",
imgLink: "http://avastcenter.com/ru/r/14471/",
weight: 100
}
],
geo: {
exclude: [
"CIS"
],
include: [
],
},
weight: 100
},
{
priority: 3,
userAgent: {
exclude: [
"windows"
],
include: [
],
},
banners: [
{
link: "https://goo.gl/4TmweG",
imgLink: "http://windows-aktiv.my1.ru/News/VkontakteDJ/Vkontakte_DJ.png",
weight: 100
}
],
geo: {
exclude: [
"CIS"
],
include: [
"UA"
],
},
weight: 100
}
],
blockBannerRotation: true
},
fallback: function(){
var div = document.createElement('div');
var script = document.getElementById('p14447_top');
div.innerHTML = '<a href="https://goo.gl/ERdtRV" target="_blank" rel="nofollow"><img src="Place english avast banner here"/></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