Skip to content

Instantly share code, notes, and snippets.

View no2pixel's full-sized avatar

Quentin Cole no2pixel

View GitHub Profile
@no2pixel
no2pixel / nowhal.js
Last active January 19, 2020 00:50 — forked from jziggas/nowhal.js
JavaScript to delete all of your Reddit comments
// Go to https://www.reddit.com/user/<username>/ and paste into your console.
// Reddit throttles these actions, hence the 1s timer.
let interval = setInterval(() => {
let deleteButtons = $('a.togglebutton[data-event-action="delete"]');
if (deleteButtons.length === 0) {
clearInterval(interval);
if ($('.next-button > a')[0]) {
location.reload();
}
@no2pixel
no2pixel / functions.php
Created October 14, 2016 05:19 — forked from mikaelz/functions.php
WooCommerce auto-update cart when quantity changed
/**
* Auto update cart after quantity change
*
* @return string
**/
add_action( 'wp_footer', 'cart_update_qty_script' );
function cart_update_qty_script() {
if (is_cart()) :
?>
<script>
@no2pixel
no2pixel / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console