自动复制pushbullet最后一条文字信息

auto copy last message when a new pushbullet word message arrive

目前為 2018-01-01 提交的版本,檢視 最新版本

// ==UserScript==
// @name            自动复制pushbullet最后一条文字信息
// @description     auto copy last message when  a new pushbullet word message arrive
// @include         https://www.pushbullet.com
// @version         0.1
// @author          yechenyin
// @namespace	    https://gf.qytechs.cn/users/3586-yechenyin
// @match           https://www.pushbullet.com*
// @require	        https://code.jquery.com/jquery-1.11.2.min.js
// @grant           GM_setClipboard
// @run-at          document-end
// ==/UserScript==

jQuery.fn.loaded = function(action) {
    var selector = this.selector;
    var check = setInterval(function () {
        if ($(selector).length > 0) {
            console.log($(selector).length + ' ' + selector + " is loaded");
            clearInterval(check);
            action();
        }
    }, 100);
};

$('.text-part').loaded(function () {
    GM_setClipboard($('.text-part').last().text().replace(/\s+$/, ''));
});



QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址