Initial release of PokeX.

This commit is contained in:
Klaus-Uwe Mitterer 2014-12-01 00:34:53 +01:00
commit bc465b664c

18
pokex.user.js Normal file
View file

@ -0,0 +1,18 @@
// ==UserScript==
// @name PokeX
// @namespace http://git.klaus-uwe.me/?p=pokex.git
// @description Remove that awful X on the Facebook poke page
// @include https://*.facebook.com/pokes/
// @version 1
// @grant none
// ==/UserScript==
setInterval(function(){removex()},500);
removex = function() {
var nodes = document.getElementsByClassName('_42ft _5upp _50zy _50-0 _50z-');
for (var i = 0; i < nodes.length; ++i) {
var n = nodes[i];
n.outerHTML = "";
}
}