summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--GoogleTranslateCleanDesign.user.js41
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