Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name accept rate details
- // @namespace stackoverflow
- // @description Shows more details of accept rate on Stack Exchange sigs.
- // @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://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
- // @author Kip Robinson - http://stackoverflow.com/users/18511/kip
- // @author Yi Jiang - http://stackoverflow.com/users/313758/yi-jiang
- // ==/UserScript==
- (function() {
- var sigDiv = document.querySelectorAll('.accept-rate');
- for(var i = 0; i < sigDiv.length; i++){
- var matches = sigDiv[i].title.match(/([\d]+) of ([\d]+)/);
- if(matches.length == 3) {
- sigDiv[i].textContent += " (" + matches[1] + "/" + matches[2] + ")";
- }
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement