commit 6572d637d80fae3cf0931d79bc9bb1d23666059f
parent 2b609c65d6ffdbf8677ed22d78f40a6bdecf1f86
Author: pancake@localhost.localdomain <unknown>
Date: Fri, 18 Sep 2009 15:21:38 +0200
* Added black CSS theme and hide applets user.js script
Diffstat:
2 files changed, 60 insertions(+), 0 deletions(-)
diff --git a/surf.suckless.org/files/black_css.md b/surf.suckless.org/files/black_css.md
@@ -0,0 +1,31 @@
+BLACK CSS THEME
+===============
+
+Description
+-----------
+
+This file must be deployed into ~/.surf/style.css to get a black themed surf
+
+ textarea,body,input,td,tr,p {
+ background-color: black !important;
+ color: #e0e0e0 !important;
+ }
+
+ div {
+ background-color: #202020 !important;
+ color: #e0e0e0 !important;
+ }
+
+ h1,h2,h3,h4 {
+ background-color: black !important;
+ color: #e02020 !important;
+ }
+
+ a {
+ color: #5050f0 !important;
+ }
+
+Author
+------
+
+- pancake <[pancake@nopcode.org](mailto:pancake@nopcode.org)>
diff --git a/surf.suckless.org/files/hide_applets.md b/surf.suckless.org/files/hide_applets.md
@@ -0,0 +1,29 @@
+HIDE APPLETS
+============
+
+Description
+-----------
+
+This script must be deployed into the ~/.surf/user.js and it will hide all the java contents:
+
+ var elementNames = new Array("object","applet");
+
+ for(var i = 0; i < elementNames.length; i++) {
+ elements = document.getElementsByTagName(elementNames[i]);
+ for(var j = 0; j < elements.length; j++) {
+ var button = document.createElement("button");
+ button.appendChild(document.createTextNode("<" + elementNames[i] + ">"));
+ elements[j].parentNode.insertBefore(button, elements[j]);
+ button.onclick = function() {
+ this.nextSibling.style.display="";
+ this.style.display="None";
+ return false;
+ }
+ elements[j].style.display="None";
+ }
+ }
+
+Author
+------
+
+- Enno Borland (Gottox) <[gottox@gmail.com](mailto:gottox@gmail.com)>