Inuun 3 Zgłoś Napisano 27 Lipiec 2017 (edytowane) ips-xd-hook Skrypt do greasemonkey lub tempermonkey który dodaje wszędzie xD // ==UserScript== // @name ips-xd-hook // @namespace ips-xd.js // @include https://mcadmins.pl/* // @version 1.1 // @author Daffit (aka Inuun) // @grant none // ==/UserScript== var selectors = [ '.ipsPageHead_barText > a', '.ipsDataItem_main > .ipsContained > .ipsDataItem_title', '.ipsDataItem_main > .ipsContained > .ipsTruncate', '.ipsDataItem_title > a', '.ipsDataItem_subList > li > a', '.ipsType_richText > p', '.ipsDataItem_title > span > .ipsType_noBreak > a > span', '.ipsType_break > a > span', '.ipsDataItem_main > .ipsType_medium > strong > a', '.ipsType_pageTitle > div > span', '.ipsPageHeader > header > .ipsType_pageTitle' ]; var xds = [ 'xD', 'xddd', 'Xdd', 'XDDD', 'XD', 'xDDDD', 'xDd', 'XdD' ]; selectors.forEach(function(selector) { $(selector).each(function() { $(this).append(" ").append(xds[Math.floor(Math.random() * xds.length)]); }); }); function task() { setTimeout(function() { $("div[id*='chatraw']").each(function() { if (!$(this).text().endsWith("d") && !$(this).text().endsWith("D")) { $(this).append(" ").append(xds[Math.floor(Math.random() * xds.length)]); } }); task(); }, 200); } task(); Screenshoty Prawda, że fajne? Edytowane 27 Lipiec 2017 przez Inuun 1 1 1 4 Udostępnij tę odpowiedź Odnośnik do odpowiedzi Udostępnij na innych stronach
Kuba6850 442 Zgłoś Napisano 27 Lipiec 2017 I ze po co ten hook? Udostępnij tę odpowiedź Odnośnik do odpowiedzi Udostępnij na innych stronach
Inuun 3 Zgłoś Napisano 27 Lipiec 2017 1 minutę temu, Kuba6850 napisał: I ze po co ten hook? xddd Don't you think our commit messages are a bit too serious? Since I started using xd with my commit messages my life in the company became ~152% better xD 1 Udostępnij tę odpowiedź Odnośnik do odpowiedzi Udostępnij na innych stronach