Skip to content

Instantly share code, notes, and snippets.

@Zegnat
Created December 8, 2012 19: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 Zegnat/4241608 to your computer and use it in GitHub Desktop.
Save Zegnat/4241608 to your computer and use it in GitHub Desktop.
Fix ‘Blog A Penguin Classic’.
// ==UserScript==
// @name Fix ‘Blog A Penguin Classic’.
// @author Martijn van der Ven <martijn@zegnat.net>
// @id fix-blog-a-penguin-classic
// @namespace http://zegnat.net
// @version 0.5
// @match http://*.blogapenguinclassic.co.uk/*
// ==/UserScript==
(function(a,i,b){
for(;b=a[i++];)
b.setAttribute('href', b.getAttribute('href').replace(/^pc_/,'pc'))
})(document.querySelectorAll('a[href^="pc_"]'),0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment