Skip to content

Instantly share code, notes, and snippets.

View allquest's full-sized avatar

Tegomass allquest

View GitHub Profile
@allquest
allquest / leboncoin_rss.user.js
Last active August 2, 2023 11:00
Greasemonkey script for LeBonCoin - A kind of RSS for the website Le bon coin with your query -- each time you reload a page, a GET request is sent to lbc and match your query. If a new offer is available, the link is shown on the top of the page.
// ==UserScript==
// @name Leboncoin RSS
// @namespace http://gist.github.com/fb7b790fb6548bdec3ec5259bebd20c0
// @author Tegomass
// @description A kind of RSS for LeBonCoin with your personnal search
// @include *
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js
// @version 1.1
// @grant GM_addStyle
// @grant GM_setValue
@allquest
allquest / waitForGmail.js
Last active February 11, 2017 18:09
WaitForGmail loading -- The jQuery ready function doesn't work on AJAX call, use this instead -- Use this link to embed : https://gist.githubusercontent.com/allquest/3e5b163374d4be41f599e12b0695294f/raw/
/*
usage example: waitForGmail(function(){ console.log('TEGO!!')});
*/
function waitForGmail(callback){
if (window.top != window.self) //don't run on frames or iframes
return;
var zGbl_PageChangedByAJAX_Timer = '';
@allquest
allquest / greasemonkey_header.js
Last active February 11, 2017 20:48
Header for GreaseMonkey Script
// ==UserScript==
// @name gmail test loading
// @namespace GM
// @description %description%
// @include https://mail.google.com/*
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js
// @exclude %exclude%
// @version 1
// @grant GM_addStyle
// ==/UserScript==
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);