Greasy Fork

Greasy Fork is available in English.

Turkanime Arama Yardimcisi

TürkAnime sitesinde istediğiniz bir seriyi aratabilirsiniz. ( Klavye kombinasyonu Shift + F )

当前为 2022-07-16 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Turkanime Arama Yardimcisi
// @namespace    https://deadlybro.carrd.co
// @description  TürkAnime sitesinde istediğiniz bir seriyi aratabilirsiniz. ( Klavye kombinasyonu Shift + F )
// @author       DeadLyBro
// @copyright    2022, DeadLyBro (https://openuserjs.org/users/DeadLyBro)
// @version      4.0
// @match        https://www.turkanime.co/*
// @icon         https://i.hizliresim.com/cbr4snl.png
// @grant        none
// @copyright 2022, DeadLyBro (https://openuserjs.org/users/DeadLyBro)
// @license MIT
// ==/UserScript==

// ==OpenUserJS==
// @author DeadLyBro
// ==/OpenUserJS==

document.addEventListener('keypress', function (e) {
  if (e.shiftKey && e.which === 70) { // Eğer Shift ve F tuşuna basarsak
    if (seri = prompt("Aradığınız serinin adı nedir?", "")) { // bize neyi aramak istediğimizi sorsun.
      document.querySelector("#search > form > input").value = seri; // Girdiğimiz veriyi inputa yazdırma işlemi.
      document.querySelector("#search > form").submit(); // Son olarak aratma işlemi.
    }
    else {
      var stil = document.createElement("style");
      stil.innerHTML = "@keyframes iptal {from {top: -50px;}to {top: 50px;}";
      document.body.append(stil); // Oluşturduğumuz Stil'i Body'e ekleme işlemi.

      var elem = document.createElement("div");
      elem.style.cssText = `
                           visibility: hidden;
                           z-index: 9999;
                           position: fixed;
                           padding: 10px;
                           width: auto;
                           height: auto;
                           top: 50px;
                           left: calc(100vw / 2 + 120px);
                           border-radius: 10px;
                           color: #ed3636;
                           background: #23252c;
                           animation-duration: 1s;
                           animation-timing-function: ease-in;
                           animation-name: iptal;
                           `; // Kullanıcı giriş yapmışsa elemente bu stilleri ekle.
      elem.innerHTML = "Arama iptal edildi.";
      document.body.append(elem); // Oluşturduğumuz Element'i Body'e ekleme işlemi.

      var y = document.querySelector("#bd > header > article > ul.nav.navbar-nav.navbar-right > li.dropdown.mesajlar.kul-menu"); // Kullanıcı giriş kontrolü.
      if (typeof y === 'undefined' || y === null) {
               elem.style.cssText = `
                                     visibility: hidden;
                                     z-index: 9999;
                                     position: fixed;
                                     padding: 10px;
                                     width: auto;
                                     height: auto;
                                     top: 50px;
                                     left: calc(100vw / 2 + 190px);
                                     border-radius: 10px;
                                     color: #ed3636;
                                     background: #23252c;
                                     animation-duration: 1s;
                                     animation-timing-function: ease-in;
                                     animation-name: iptal;
	                                `
      } // Kullanıcı giriş yapmamışsa elemente bu stilleri ekle.

      setTimeout(function(){
          elem.style.visibility = "visible";
      }, 500); // Yarım saniye sonra görünürlüğü aktifleştirir.

      setTimeout(function(){
          elem.remove();
          stil.remove();
      }, 3 * 1000); // 3 saniye sonra eklenenleri kaldırır.

      return;

    }
  }
});