Skip to content

Instantly share code, notes, and snippets.

@shawnchin
Created September 18, 2012 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shawnchin/1962bd9a83a735e5a337 to your computer and use it in GitHub Desktop.
Save shawnchin/1962bd9a83a735e5a337 to your computer and use it in GitHub Desktop.
Userscript to pull the Personal Tags section to the top of the sidebar
// ==UserScript==
// @name StackExchange™ Personal Tags on top
// @namespace http://shawnchin.github.com
// @description Pulls the Personal Tags section to the top of the side bar
// @include http://stackoverflow.com/*
// @include http://meta.stackoverflow.com/*
// @include http://superuser.com/*
// @include http://meta.superuser.com/*
// @include http://serverfault.com/*
// @include http://meta.serverfault.com/*
// @include http://askubuntu.com/*
// @include http://meta.askubuntu.com/*
// @include http://answers.onstartups.com/*
// @include http://meta.answers.onstartups.com/*
// @include http://nothingtoinstall.com/*
// @include http://meta.nothingtoinstall.com/*
// @include http://seasonedadvice.com/*
// @include http://meta.seasonedadvice.com/*
// @include http://crossvalidated.com/*
// @include http://meta.crossvalidated.com/*
// @include http://askdifferent.com/*
// @include http://meta.askdifferent.com/*
// @include http://stackapps.com/*
// @include http://*.stackexchange.com/*
// @exclude http://chat.stackexchange.com/*
// @exclude http://api.*.stackexchange.com/*
// @exclude http://data.stackexchange.com/*
// @exclude http://area51.stackexchange.com/*
// @exclude http://*/reputation
// @version 1
// ==/UserScript==
function EmbedFunctionOnPageAndExecute(function_contents)
{
var exec_script = document.createElement('script');
exec_script.type = 'text/javascript';
exec_script.textContent = "(" + function_contents.toString() + ")()";
document.getElementsByTagName('head')[0].appendChild(exec_script);
}
EmbedFunctionOnPageAndExecute(function() {
$('#interesting-tags').prependTo($('#sidebar'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment