GreaseMonkey სკრიპტე (ბონუსად აუტოპოსტ):
» სპოილერის ნახვისთვის დააწკაპუნეთ აქ «
| CODE |
// ==UserScript== // @name My Fancy New Userscript // @namespace https://forum.ge // @version 0.1 // @description auto post // @author You // @match https://forum.ge/* // @grant none ///@run-at document-start // ==/UserScript==
// Auto poster var checkFunc = function() { var c = document.getElementById("countDownText"); if (c != null) { c = c.innerText.trim(); if (c !== null) { c = Number(c); if (c < 2) { location.reload(); } else { window.setTimeout(checkFunc, c*1000); } } } } checkFunc();
// Idiot filter var idiotFilter = function() { console.log('Idiot Filter started'); var idiotArray = ['Klingon', 'dega', 'კუსკუსა']; var posts = document.querySelectorAll("span.normalname a"); for (var i = 0, n = posts.length; i < n; i++) { var post = posts[i]; if (post !== null) { if (idiotArray.indexOf(post.textContent) > -1) { console.log('Found an idiot', post); var table = post.parentElement.parentElement.parentElement.parentElement.parentElement console.log('Found idiot\'s table', table); table.style.height="1.5em"; table.style.display="block"; table.style.overflow="hidden"; table.style.position="relative"; table.style.border="pink 2px solid"; var toggleIdiot = function() { var table = this.parentNode; if (table.style.display !== 'block') { // hide table.style.display="block"; } else { // show table.style.display="table"; } return false; }; // creating button var b = document.createElement('button'); b.textContent = "Toggle " + post.textContent; b.style.position = "absolute"; b.style.top = 0; b.onclick=toggleIdiot; table.appendChild(b); } } } };
// Hook load //window.setTimeout(idiotFilter, 0); idiotFilter();
|
გრიზმანკის (ტამპერმანკიც აძინ ხუია) ლინკე (ქრომისთვის):
https://chrome.google.com/webstore/detail/t...dmpobfkfo?hl=enფირეფოქსისთვის:
https://addons.mozilla.org/en-us/firefox/addon/greasemonkey/ინ ვორკ, ასე გამოიყურება:
This post has been edited by ზღარბიბი on 13 Jul 2015, 15:15
მიმაგრებული სურათი