Initial release of PokeX.
This commit is contained in:
commit
bc465b664c
1 changed files with 18 additions and 0 deletions
18
pokex.user.js
Normal file
18
pokex.user.js
Normal 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 = "";
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue