Skip to content

Instantly share code, notes, and snippets.



Last active Aug 21, 2016
What would you like to do?
Auto insert the customer name in a bbPress reply
// ==UserScript==
// @name Hi-Automatic!
// @namespace
// @version 1.0
// @description Adding Hi+Name automatic for Themify support forums
// @author Alaa.Salama
// @include*
// @grant none
// @require
// ==/UserScript==
(function() {
'use strict';
// Your code here...
var client_name = jQuery(".bbp-replies li:nth-child(3) a.bbp-author-name").text();
jQuery("body.single-topic #bbp_reply_content").append("Hi "+ client_name + "," + "\n");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.