From 6af69cbce357cbba4e90f7fd5e7463b04b4f777c Mon Sep 17 00:00:00 2001 From: Fabien Benetou Date: Tue, 14 Jun 2011 21:56:01 +0200 Subject: [PATCH] GM revertedpim script fixed style --- pub/code/reverted_pim_links.user.js | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/pub/code/reverted_pim_links.user.js b/pub/code/reverted_pim_links.user.js index 042d06e..ad4e919 100644 --- a/pub/code/reverted_pim_links.user.js +++ b/pub/code/reverted_pim_links.user.js @@ -4,14 +4,10 @@ // @description overlay so that a visited page indexed in a PIM displays a link back // @include * // @exclude *://mail.google.com/mail/* -// @require http://ecmanaut.googlecode.com/svn/trunk/lib/gm/$x$X.js // ==/UserScript== -// the require script is a part of ecmanaut grand project -// to re-organize the world starting with the annoying interface to the DOM API - /* - * Script homepage : from http://userscripts.org/ somewhere? + * Script homepage : http://fabien.benetou.fr/Tools/Greasemonkey#RevertedPIMLinks * * to do * find a way (visiting a special URL?) to (re)generate the data store on demand (not at each boot) @@ -62,23 +58,8 @@ if (PIMpages != "fail") var pages = PIMpages.split(" "); var myDiv = document.createElement('div'); while (page = pages.shift()){ - myDiv.innerHTML += "

"+page+"

"; + myDiv.innerHTML += "

"+page+"

"; } - myDiv.style = 'color:red; border:10px; align:right;'; + myDiv.style.cssText = 'background-color:black !important; border:10px; align:right;'; document.body.appendChild(myDiv); } - - -function addGlobalStyle(css) { - var head, style; - head = document.getElementsByTagName('head')[0]; - if (!head) { alert('no head?!'); return; } - style = document.createElement('style'); - style.type = 'text/css'; - style.innerHTML = css; - head.appendChild(style); -} - -addGlobalStyle('bgcolor:black;'); - -//styles have no effect?!