Skip to content

Instantly share code, notes, and snippets.

@coin32-gists
Created May 8, 2018 15:49
Show Gist options
  • Save coin32-gists/130e813a72c190899058ea7ecf6e611a to your computer and use it in GitHub Desktop.
Save coin32-gists/130e813a72c190899058ea7ecf6e611a to your computer and use it in GitHub Desktop.
<script id="p14405_top">
(window.rttr1011 = window.rttr1011 || { queue: [] }).queue.push({
name: 'p14405',
selector: 'p14405_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/te8e8y",
imgLink: "http://coop-gamers.ru/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/GUrAfL",
imgLink: "http://coop-gamers.ru/adguard.png",
weight: 100
}
],
geo: {
exclude: [
],
include: [
"CIS"
],
},
weight: 100
}
],
blockBannerRotation: true
},
fallback: function(){
var div = document.createElement('div');
var script = document.getElementById('p14405_top');
div.innerHTML = '<a href="https://goo.gl/S1yWDb" target="_blank" rel="nofollow"><img src="http://coop-gamers.ru/adguard.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