Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function forAll(xpath, root, f) {
- var result = document.evaluate(xpath, root != null ? root : document.documentElement, null,
- XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
- for (var i=0; i<result.snapshotLength; i++) {
- var n = result.snapshotItem(i);
- f(n);
- }
- }
- if (window.location.href.endsWith('forum') || window.location.href.contains('team')) {
- $('#chat-messages').css('max-height', '800px');
- } else if (window.location.href.contains('fight')) {
- $('#logs').css({
- 'text-align': 'left',
- 'background-color': 'rgba(60,60,60, 0.7)',
- 'font-size': '10px',
- });
- $('#logs-wrapper').css({
- 'height': '1000px',
- 'width': '1000px',
- });
- }
- if (window.location.href.contains('forum')) {
- var f = function(){
- forAll("//div[@author='13509']", null, function(elt) { // Evenkore
- elt.style.color = "#dddddd";
- elt.style.fontSize = "9px";
- });
- forAll("//div[@author='8148']", null, function(elt) { // srax
- elt.innerHTML = elt.innerHTML.replace(/ sencer /, ' censé ');
- });
- };
- setInterval(f, 1000);
- }
- { // logo + header
- var elt = document.getElementById('logo');
- elt.parentNode.removeChild(elt);
- $('#header').css('height', '0');
- }
- { // footer
- var elt = document.getElementById('footer');
- elt.parentNode.removeChild(elt);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement