diff options
author | ZoRo <dos21h@gmail.com> | 2018-11-21 20:49:27 +0000 |
---|---|---|
committer | ZoRo <dos21h@gmail.com> | 2018-11-21 20:49:27 +0000 |
commit | 77b7c2416faeae6d1acf9c306782182b5ccb1259 (patch) | |
tree | d2ec084aa280b86f922c3dc1e490e21746d5690d | |
download | jshack-master.tar.gz jshack-master.zip |
-rw-r--r-- | GoogleTranslateCleanDesign.user.js | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/GoogleTranslateCleanDesign.user.js b/GoogleTranslateCleanDesign.user.js new file mode 100644 index 0000000..cd75918 --- /dev/null +++ b/GoogleTranslateCleanDesign.user.js @@ -0,0 +1,41 @@ +// ==UserScript== +// @name GoogleTranslateCleanDesign +// @namespace http://hibbard.eu/ +// @version 0.1 +// @description Opens links from the CodeProject newsletter +// @match https://translate.google.com/ +// @copyright 2012+, hibbard.eu +// @require http://code.jquery.com/jquery-latest.js +// ==/UserScript== + +(function() { + 'use strict'; + var e = document.getElementsByClassName("cp-promo-c"); + for (var i=0;i<e.length;i++) + { + var e1 = e[i]; + e1.innerHTML = ""; + } + + e = document.getElementById("gt-ft-res"); + e.innerHTML = ""; + + e = document.getElementsByClassName("gb_Vg"); + for (i=0;i<e.length;i++) + { + e1 = e[i]; + e1.style.height = "0px"; + e1.innerHTML = ""; + } + + e = document.getElementsByClassName("gb_Od"); + for (i=0;i<e.length;i++) + { + e1 = e[i]; + e1.style.height = "0px"; + e1.innerHTML = ""; + } + + console.log("nothing works"); + // Your code here... +})();
\ No newline at end of file |