Skip to content

Instantly share code, notes, and snippets.

@ZhangYiJiang
Created November 9, 2012 12:01
Show Gist options
  • Save ZhangYiJiang/4045368 to your computer and use it in GitHub Desktop.
Save ZhangYiJiang/4045368 to your computer and use it in GitHub Desktop.
Asslandia
// ==UserScript==
// @name Asslandia
// @namespace yijiang
// @include http://www.glitch.com/*
// @version 1.01
// ==/UserScript==
// NEVER FORGET LNVG40H1DOD392I :(
var assLinks = document.querySelectorAll('a[href*="LA9BT2I0ILD340S"]');
for (var i = 0, l = assLinks.length; i < l; i++) {
var link = assLinks[i];
// Don't change snap links
if (link.href.match('snaps')) continue;
link.textContent = 'Asslandia';
}
// Snaps index page title
var snapTitle = document.getElementsByClassName('photo-index-title');
for (var i = 0, l = snapTitle.length; i < l; i++) {
snapTitle[i].textContent = snapTitle[i].textContent.replace(/Shim Shiri/g, 'Asslandia');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment