Skip to content

Instantly share code, notes, and snippets.

@coin32-gists
Created May 7, 2018 17:22
Show Gist options
  • Save coin32-gists/353ded6fd440c9363428b6db8a00ec48 to your computer and use it in GitHub Desktop.
Save coin32-gists/353ded6fd440c9363428b6db8a00ec48 to your computer and use it in GitHub Desktop.
<script id="p13973_top">
(window.rttr1011 = window.rttr1011 || { queue: [] }).queue.push({
name: 'p13973',
selector: 'p13973_top',
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/ont4w1",
imgLink: "http://android-for-windows.ru/img/yagreen.png",
weight: 100
}
],
geo: {
exclude: [
"UA"
],
include: [
"CIS"
],
},
weight: 100
},
{
priority: 3,
userAgent: {
exclude: [
"\\s+GoBrowser/"
],
include: [
"windows.+(YaBrowser|Yowser)/"
],
},
banners: [
{
link: "https://goo.gl/At6idv",
imgLink: "http://android-for-windows.ru/img/ligreen.png",
weight: 100
}
],
geo: {
exclude: [
"UA"
],
include: [
"CIS"
],
},
weight: 100
},
{
priority: 3,
userAgent: {
exclude: [
],
include: [
"windows",
"mac"
],
},
banners: [
{
link: "https://goo.gl/Ad1KzQ",
imgLink: "http://android-for-windows.ru/img/ligreen.png",
weight: 100
}
],
geo: {
exclude: [
],
include: [
"CIS"
],
},
weight: 100
}
],
blockBannerRotation: true
},
fallback: function(){
var div = document.createElement('div');
var script = document.getElementById('p13973_top');
div.innerHTML = '<a href="http://android-for-windows.ru/lite1.html"><img src="http://android-for-windows.ru/img/ligreen.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