Last active
May 18, 2018 15:17
-
-
Save ygun/56d320cc5b901a71154a28c2c8ea1281 to your computer and use it in GitHub Desktop.
Revisions
-
ygun revised this gist
May 18, 2018 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,10 @@ // ==UserScript== // @name Clean comments on antitreningi.ru // @namespace http://tampermonkey.net/ // @version 0.2 // @description try to take over the world! // @author You // @match http://antitreningi.ru/ru/student/lessons/lesson/* // @grant none // ==/UserScript== @@ -16,7 +15,10 @@ var $ = window.jQuery; switch (e.keyCode) { case 120: //F9 var elements = document.querySelectorAll('.b-hwtest__one__answer > i'); Array.prototype.forEach.call(elements, function(el, i) { el.parentNode.removeChild(el); }); break; default: break; -
ygun created this gist
May 16, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ // ==UserScript== // @name Clean comments on antitreningi.ru // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match http://antitreningi.ru/ru/student/lessons/lesson/* // @require https://code.jquery.com/jquery-2.1.4.min.js // @grant none // ==/UserScript== (function() { 'use strict'; // Your code here... function doc_keyUp(e) { var $ = window.jQuery; switch (e.keyCode) { case 120: //F9 $(".b-hwtest__one__answer > i").remove(); break; default: break; } } document.addEventListener('keyup', doc_keyUp, false); })();