Skip to content

Instantly share code, notes, and snippets.

View dharFr's full-sized avatar

Olivier Audard dharFr

View GitHub Profile
@dharFr
dharFr / jquery.pinger-0.2.js
Created July 26, 2011 15:43
$.pinger : jQuery plugin for ping-URL process
/**
* $.pinger
*
* If your page runs into an iframe hosted by another domain, you may want to keep the session open.
* This plugin automates the "ping URL" process and provides some options.
*
* The pinger will ask the given URL every 'interval' minutes if it detects
* some activity by listening to the events listed in 'listen' parameter.
*
* Have a look to the 'defaults' variable below for further details about available parameters and default values.
@dharFr
dharFr / delete-likes.js
Created September 2, 2023 00:07
Delete Tweets, RT & Likes from your Twitter/X account, from the browser console
/**
* 1. Go to "Likes" section of your profile (e.g. https://twitter.com/<your_twix_handle>/likes)
* 2. Open browser Console (Cmd + Option + I on Mac, F12 otherwise?)
* 3. Copy/Paste the script and press enter to run it.
*
* At some point, depending on the number of items you need to process, you might see the following error in the console:
* > "the server responded with a status of 429"
* That's TwiX rate limiting. Reload the page, wait a few minutes/hours before trying again, and you should be fine.
* Inspired from https://stackoverflow.com/a/72515907
*/