Skip to content

Instantly share code, notes, and snippets.

View leemars's full-sized avatar

Jun Huang leemars

  • Meideng Tech
  • Hangzhou, Zhejiang
  • X @leemars
View GitHub Profile
@md55
md55 / jquery.waituntilexists.js
Last active June 16, 2023 16:16 — forked from PizzaBrandon/jquery.waituntilexists.js
bugfix: if handler do waituntilexists() again with same selector then new IntervalId will replace old one in intervals array before removeListener() call. So new Interval will be cleared instead of old, and old Interval will never be cleared.
;(function ($, window) {
var intervals = {};
var removeListener = function(selector) {
if (intervals[selector]) {
window.clearInterval(intervals[selector]);
intervals[selector] = null;
}
@PizzaBrandon
PizzaBrandon / jquery.waituntilexists.js
Last active August 24, 2023 14:23 — forked from buu700/jquery.waituntilexists.js
Updated waitUntilExists plugin
;(function ($, window) {
var intervals = {};
var removeListener = function(selector) {
if (intervals[selector]) {
window.clearInterval(intervals[selector]);
intervals[selector] = null;
}
@leemars
leemars / README.markdown
Last active February 27, 2024 14:26
jumbo

jumbo

A package management system which allows installation to non-system location.

点此 为 jumbo 捐款!

jumbo 是什么?

jumbo 是一个适用于百度测试机环境的包管理工具, 使用它可以方便地管理各种软件包. 真的, 不会再有比这个更方便的管理工具了!

@monperrus
monperrus / GM_XHR.js
Last active September 9, 2022 15:52
allows using all Jquery AJAX methods in Greasemonkey
// allows using all Jquery AJAX methods in Greasemonkey
// inspired from http://ryangreenberg.com/archives/2010/03/greasemonkey_jquery.php
// works with JQuery 1.5
// (c) 2011 Martin Monperrus
// (c) 2010 Ryan Greenberg
//
// Usage:
// $.ajax({
// url: '/p/',
// xhr: function(){return new GM_XHR();},