Zendesk: hide the name of submitter and date in forum article
The Problem
It’s a request we have quite often so, even though it’s a one line of code, I thought it might be useful to share this!
If you don’t want your name to be tied to a forum article, you can create a fake Zendesk user just to post articles.
Another easy way is to use this bit of code to remove entirely the date and the forum submitter name.
An article will look like this:

Create a Global JavaScript widget and put in there the following code.
The code
$j(".entry-container p.entry_user").hide();
It’s available on my GitHub.
TweetZendesk: hide ticket fields based on a user’s organisation
It’s cool to display ticket fields to agents and/or end users, but what if you have different organisations in the same Zendesk and want to hide specific fields only for people in a specific organisation? Well, say no more!
The requirement
In one of my Zendesk environment I have 3 organisations: organisation of customer 1, organisation of customer 2 and our internal organisation (our company). Whenever end users, agents or light agents from our company are checking a ticket, I want them to see a specific ticket field that contains an internal reference. If people from organisation of customer 1 or 2 are checking out the same ticket I don’t want them to see that internal reference.
The solution
Create a Global JavaScript extension in which you replace var organization_ids = [20863746] by the actual ID of the organisation that shouldn’t see the field (you can have the ID via Manage> People> Organisations) and replace id_to_remove = “#ticket_fields_20813026” by the unique ID of your custom field. Or even, by modifying the code a bit, simply put there the CSS ID of the field.
//START hide field based on organisation
jQuery(function($) {
var organization_ids = [22071016],
//Insert here the ID from the organisation which shouldn't see the field
id_to_remove = "#ticket_fields_20813026",
//Insert here the ID of custom field or the DIV ID of a system field you want to hide
user_url = jQuery("a#top-right-name").attr("href");
jQuery.getJSON(user_url, {}, function(data){
if (organization_ids.indexOf(data.organization_id) >= 0){
jQuery(id_to_remove).parent().remove()
}
})
})
//END hide field based on organisation
The result
This is the customer’s view. Hey, something disappeared!
The source
Available on my GitHub account
TweetReset the ECU of a 370Z: harder than cheating on an arcade console
Resetting the ECU of your car might be useful if you mod it in any way, if you just bought it second hand and want it to “learn” your driving style quickly or even if you experience weird average consumption.
You usually have two options: removing the negative plug of your battery (but also losing some settings on the on-board computer) or by a tricky plugs & pedals games.
Let’s hit the right-left-left-triangle-circle-left-right-right sequence
- With accelerator pedal fully released, turn the ignition switch “ON” (= press twice on it) and wait 3 seconds
- Fully depress and release the gas pedal 5 times (quickly and firmly)
- Wait 7 seconds and fully depress the gas pedal and keep it for approximately 10 seconds until the SES light starts blinking (depending on your country, you will see either the “service engine soon” light or a light with an engine icon)
- Fully release the gas pedal (while the SES light is still blinking)
- Wait for about 10 seconds
- Fully depress the gas pedal and keep it for more than 10 seconds
- Fully release the gas pedal (the SES light is still blinking)
- Turn ignition switch to “OFF” position and now you can start the car
After a reset, you should drive reasonably to avoid weird results in the first 50 or so kilometres. The best result can be achieved by doing a trip on the highway.
Enjoy!
TweetAdd the backspace key shortcut back to Safari 6
Since I switched to Mountain Lion, I haven’t had a lot of issues. But some really minor differences between this new OS X version and Lion made me go crazy. A bit.
I rely a lot on keyboard shortcuts to enhance my workflow in Apps. And for a reason I still don’t understand, Apple removed the backspace keyboard shortcut to go back to the previously visited page. This shortcut works on any browser & on any OS so I don’t get why we couldn’t use that handy shortcut anymore. They were probably too busy focusing on the trial vs. Samsung
I fiddled around the Safari .plist file with XCode and saw that there was still a mention of a “Back” key. As I looked more in depth, I discovered that some shortcuts were actually simply containing the shortcut keys in unicode mode. So, without any faith, I tried to tie the “Back” command to the backspace key, in unicode. And it worked!
The solution
Simply copy and paste this code into terminal, no sudo required. Relaunch Safari and you will be able to use backspace to go to the previous page again.
defaults write com.apple.Safari NSUserKeyEquivalents -dict-add Back "\U232b"
I think Apple is trying to encourage use to use the swipe movements on the trackpad, which I like and use while on the go. The problem is that at the office and at home I use my laptop with an external display and keyboard so this is useless…
TweetZendesk: add color to priorities in Views
It’s a very, very minor addition but I tweaked our Zendesk CSS to show some colours next to each ticket’s priority level. I didn’t use the Zendesk score feature so I removed that column from the Views we have but I wanted to know, by having a quick glance, how many low, normal or urgent requests we had.
The solution
Except from priority_normal, each priority has its own CSS class. So I simply added to my custom CSS the following code to add some colors (obviously, blue is “relaaax” and red is “WTFBBQ!11!!”)
priority_urgent{
color:red;}
.priority_high{
color:orange;}
.priority_low{
color:blue;}
The result
The source
Available here.
Tweet



