Skip to content

Instantly share code, notes, and snippets.

@notpushkin
Created March 4, 2013 16:11
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 notpushkin/5083343 to your computer and use it in GitHub Desktop.
Save notpushkin/5083343 to your computer and use it in GitHub Desktop.
puush.user.js
// ==UserScript==
// @name Puush~
// @namespace ale110+puush@vk.com
// @include https://vk.com/im*
// @version 1
// @grant none
// ==/UserScript==
setInterval(function() {
puush = document.querySelectorAll('a[href*="puu.sh"]:not(.ale-puush--processed)');
for (i in puush) {
puu = puush[i];
if (typeof puu.classList != "undefined") {
puu.innerHTML = "<img src='" + puu.href + "' style='max-width: 400px; max-height: 200px;'>";
puu.classList.add("ale-puush--processed");
}
}
}, 150);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment