Commit b49dd766 authored by Ahoy's avatar Ahoy

new params language and country, new donor

parent ae29f4e6
Pipeline #13103420 passed with stages
in 37 seconds
......@@ -131,6 +131,26 @@
<span class="attr-name">src=&quot;</span><span class="attr-value">//yohoho.cc/yo.js</span><span class="attr-name">&quot;</span><span class="tag">&gt;&lt;/script&gt;</span>
<div class="example" data-ahoy="yohoho-torrent">Показать</div>
</div>
<div class="code">
<span class="comment">
&lt;!-- Вставляете в место, где должн быть EN плеер --&gt;
</span>
<br>
<span class="tag">&lt;div</span>
<span> </span>
<span class="attr-name">id=&quot;</span><span class="attr-value">yohoho</span><span class="attr-name">&quot;</span>
<span> </span>
<span class="attr-name">data-player=&quot;</span><span class="attr-value">vodlocker</span><span class="attr-name">&quot;</span>
<span> </span>
<span class="attr-name">data-language=&quot;</span><span class="attr-value">en</span><span class="attr-name">&quot;</span><span class="tag">&gt;&lt;/div&gt;</span>
<span> </span>
<span class="attr-name">data-title=&quot;</span><span class="attr-value">Avatar</span><span class="attr-name">&quot;</span><span class="tag">&gt;&lt;/div&gt;</span>
<br>
<span class="tag">&lt;script</span>
<span> </span>
<span class="attr-name">src=&quot;</span><span class="attr-value">//yohoho.cc/yo.js</span><span class="attr-name">&quot;</span><span class="tag">&gt;&lt;/script&gt;</span>
<div class="example" data-ahoy="yohoho-vodlocker">Показать</div>
</div>
<div class="code">
<span class="comment">
Параметр <span class="attr-name">data-title</span> (поиск торрентов, трейлера и плееров)
......@@ -173,6 +193,9 @@
<span class="attr-name">data-player=&quot;</span><span class="attr-value">allserials</span><span class="attr-name">&quot;</span>
<span class="comment"> - плеер allserials.tv</span>
<br>
<br>
<span class="attr-name">data-player=&quot;</span><span class="attr-value">vodlocker</span><span class="attr-name">&quot;</span>
<span class="comment"> - плеер vodlocker.to</span>
<span class="attr-name">data-player=&quot;</span><span class="attr-value">trailer</span><span class="attr-name">&quot;</span>
<span class="comment"> - трейлер с YouTube</span>
<br>
......@@ -232,6 +255,17 @@
<span class="comment"> - Ваш токен YouTube API</span>
<br>
</div>
<div class="code">
<span class="comment">
Параметр <span class="attr-name">data-language</span> и <span class="attr-name">data-country</span>
</span>
<br>
<span class="attr-name">data-language=&quot;</span><span class="attr-value">ru</span><span class="attr-name">&quot;</span>
<span class="comment"> - ISO 639-1 код названия языка</span>
<br>
<span class="attr-name">data-country=&quot;</span><span class="attr-value">RU</span><span class="attr-name">&quot;</span>
<span class="comment"> - ISO 3166-1 код названия страны</span>
</div>
<div class="text-muted text-justify">
<h1>
<a href="#pleery_filmov_online" id="pleery_filmov_online" style="color: #fff">
......@@ -330,6 +364,7 @@
<div id="yohoho-kinopoisk" data-kinopoisk="401522"></div>
<div id="yohoho-trailer" data-player="trailer" data-title="Моана"></div>
<div id="yohoho-torrent" data-player="torrent" data-title="Инферно"></div>
<div id="yohoho-vodlocker" data-player="vodlocker" data-language="en" data-title="Avatar"></div>
</div>
<script src="yo.js"></script>
......@@ -346,7 +381,7 @@
});
</script>
<script type="text/javascript"> (function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter42913814 = new Ya.Metrika({ id:42913814, clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true, trackHash:true }); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = "https://mc.yandex.ru/metrika/watch.js"; if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks"); </script> <noscript><div><img src="https://mc.yandex.ru/watch/42913814" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
<script type="text/javascript"> (function (d, w, c) { (w[c] = w[c] || []).push(function() { try { w.yaCounter42913814 = new Ya.Metrika({ id:42913814, clickmap:true, trackLinks:true, accurateTrackBounce:true, webvisor:true, trackHash:true }); } catch(e) { } }); var n = d.getElementsByTagName("script")[0], s = d.createElement("script"), f = function () { n.parentNode.insertBefore(s, n); }; s.type = "text/javascript"; s.async = true; s.src = "https://mc.yandex.ru/metrika/watch.js"; if (w.opera === "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); } })(document, window, "yandex_metrika_callbacks"); </script> <noscript><div><img src="https://mc.yandex.ru/watch/42913814" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
</body>
</html>
\ No newline at end of file
document.addEventListener('DOMContentLoaded', ahoy_yo);
function ahoy_yo() {
var botPattern = '(googlebot\/|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)';
var re = new RegExp(botPattern, 'i');
var userAgent = navigator.userAgent;
if (re.test(userAgent)) {
return false;
}
var a = document.querySelectorAll('[data-ahoy]');
if (a && a.length) {
for (var i in a) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment