DToast

仿桌面通知

لا ينبغي أن لا يتم تثبيت هذا السكريت مباشرة. هو مكتبة لسكبتات لتشمل مع التوجيه الفوقية // @require https://update.greatest.deepsurf.us/scripts/399356/1025166/DToast.js

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

المؤلف
涛之雨
الإصدار
0.0.1.20200402155157
تم إنشاؤه
02-04-2020
تم تحديثه
02-04-2020
الحجم
8.38 KB
الترخيص
لا يوجد

仿桌面通知

注:代码非原创!!! 在此分享。 来源不详,侵删!!! 可能来自https://www.jq22.com/jquery-info20041(吧)

参数举例:

var config={
    title:"新消息",//通知标题部分
    body:"新消息内容",//通知内容部分
    timeout:2000,//消失延时 默认6.5秒
    master:"涛之雨",//提醒的所有者 默认为当前域名
    inner:true, // 是浏览器仿桌面通知 否首选桌面通知 默认否 可选
    onclick:function(data){ //监听点击通知   data:可传递参数 可选
        alert("仿桌面通知被点击了,参数是"+data);
    },
    data:"我是仿桌面通知的参数",//可传递参数 可选
    icon:"img/1.png"//通知的图片 可选
}

//仿桌面通知
new dToast(config);