Skip to content

Instantly share code, notes, and snippets.

View anevins12's full-sized avatar
🌱

Andrew Nevins anevins12

🌱
  • Intopia
  • Melbourne
View GitHub Profile
@anevins12
anevins12 / gist:da799e25032283fcc110
Last active October 7, 2015 21:36
Show hidden links in post
var post = $('.threadpost .post'),
links = post.find('a');
// Show hidden links
links.each(function() {
var link = $(this);
if(link.text() == '') {
@anevins12
anevins12 / .js
Created October 7, 2015 21:59
Forum & BBadmin show hidden links
// Forum thread
if ($('#wordpress-org').length !== 0) {
if ($('#thread').length !== 0) {
var posts = $('.threadpost .post');
showHiddenLinks(posts);
}
}
// BBadmin
// Add the trigger link
// $username = Take everything from the last '/' from the profile link
// On click of the trigger
// $post_content = Grab the contents of the textarea
// $post_content = $post_content + ' @' + $username;
@anevins12
anevins12 / teams-emoji-remover.js
Last active March 12, 2021 17:53
Remove gifs & emojis from Microsoft Teams
// ==UserScript==
// @name Remove emojis & remove gifs
// @namespace http://tampermonkey.net/
// @include *://*teams.microsoft.com/*
// @version 0.1
// @grant none
// ==/UserScript==
(function() {
'use strict';
@anevins12
anevins12 / gist:deb132fef7c5ee5f9ff1fbc83b272fed
Created September 20, 2017 14:17
WordPress.org plugin repository sock-puppet flagger
// ==UserScript==
// @name WordPress.org New Plugin sock puppet flag
// @namespace http://tampermonkey.net/
// @match https://wordpress.org/plugins/browse/*
// @grant none
// ==/UserScript==
var $ = jQuery,
ratings = $('.rating-count a'),
ratingsValue,
@anevins12
anevins12 / wordpress-sort-reviews.js
Last active January 23, 2018 16:05
WordPress.org Reviews Sort
// ==UserScript==
// @name WordPress.org Reviews Sort
// @description Sorts reviews by the number of replies
// @namespace WordPress_reviews_sort
// @include *://*wordpress.org/support/forum/reviews/*
// @version 1.0.0
// @updateURL https://gist.githubusercontent.com/anevins12/d59e107a163aed5291409e682ebad278/raw/78a80c844723c8fea7edc55fb6b7bbec76bc0fbc/wordpress-sort-reviews.js
// @downloadURL https://gist.githubusercontent.com/anevins12/d59e107a163aed5291409e682ebad278/raw/78a80c844723c8fea7edc55fb6b7bbec76bc0fbc/wordpress-sort-reviews.js
// @grant none
// @author anevins12
// ==UserScript==
// @name Dupe review helper
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Watches out for reviews made by the same IP subnet
// @author anevins12
// @match https://wordpress.org/support/topic/*
// @grant none
// ==/UserScript==
@anevins12
anevins12 / index.html
Last active June 14, 2018 10:46
HOC React example
<!DOCTYPE html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.min.js"></script>
<script src="//fb.me/react-0.14.3.js"></script>
<script src="//fb.me/react-dom-0.14.3.js"></script>
<title>I'm amazing act React</title>
</head>
<body>
<div id="wrapper"></div>
@anevins12
anevins12 / remove_form_browser_validation.js
Last active August 29, 2019 16:36
Remove form browser validation
(function disableFormBrowserValidation() {
'use strict';
const $forms = jQuery('form:visible');
$forms.attr('novalidate', '');
})();
@anevins12
anevins12 / asda-out-of-stock.js
Last active March 12, 2020 23:25
Asda: Adds button that hides out of stock groceries
// ==UserScript==
// @name Asda removes out of stock groceries
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Makes online shopping easier
// @author You
// @match https://groceries.asda.com/search/*
// @grant none
// ==/UserScript==