csfd-compare-utils

Utils for csfd-compare

สคริปต์นี้ไม่ควรถูกติดตั้งโดยตรง มันเป็นคลังสำหรับสคริปต์อื่น ๆ เพื่อบรรจุด้วยคำสั่งเมทา // @require https://update.greasyfork.org/scripts/449554/1100309/csfd-compare-utils.js

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey, Greasemonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey to install this script.

คุณจะต้องติดตั้งส่วนขยาย เช่น Tampermonkey หรือ Violentmonkey เพื่อติดตั้งสคริปต์นี้

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

const rekniNecoTrikrat = (text) => {
  console.log(text);
  console.log(text);
  console.log(text);
}

const rekniNecoDvakrat = (text) => {
  console.log(text);
  console.log(text);
}

let Glob = {
  popupCounter: 0,

  popup: function (htmlContent, timeout = 3, width = 150, slideTime = 100) {
    var id = Glob.popupCounter++;
    if (!htmlContent) {
      return;
    }
    var yOffset = 10;
    let $popup = $(`<div>`, {
      id: `SNPopup${id}`,
      "class": "SNPopup",
      html: htmlContent,
    })
      .css({
        border: "1px solid black",
        borderRadius: "4px",
        display: "none",
        padding: "10px",
        opacity: "0.95",
        background: "#820001",
        color: "white",
        position: "absolute",
        left: "45%",
        width: `${width}px`,
        zIndex: "999",
        top: `${yOffset}px`,
        right: "10px"
      });
    $(".header-search").append($popup);
    $popup.slideDown(slideTime);
    (function ($popup) {
      setTimeout(function () {
        $popup.slideUp(slideTime);
      }, timeout * 1000);
    })($popup);
  }
};