Wikiproxy: Greasemonkey Edition

By Neil Lall Last update Sep 3, 2005 — Installed 4,672 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 7 posts, 5 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
Jon Wright User

Can't get this to work. I enclosed the block beginning "for (var i=0; i<candidates>

 
N. Seitler User

I'm not sure what the definition of a "key word" would be, but I'm noticing that the only words that seem to be made into links are either abbreviated words or their unabbreviated counterparts (NHC and National Hurricane Center are both links). Is this the intended use of this script, or should all it make all words with Wiki entries become links?

 
Robert Shaw User

Oops, it seems to have interpretted my last comment too literally. what i had was (ignore the ^) "let x=orig_style <^a sty^le="x;">Linkified text</^a>"

 
Robert Shaw User

Neil, is there no way for greasemonkey to "read" the style of the text before it linkfies it, and then set the style equal to that for that particular link? E.g., in pseudo-code: let x=orig_style;Linkified Text. This could then be modified by doing something like, maybe, style="x;color:red;" instead.

 
Neil Lall Script's Author

rob - i agree that this is a problem, but i'm not sure how to fix it. i can either give the text a set color value, or let it go with the page's designated value for links. i could alter the code to make these links pop up as gray text over white background regardless where they are - it would increase visibility but might look strange on certain sites. any thoughts?

 
Robert Shaw User

This is a really great idea. It works especially well on websites like BBC news, who are really poor at linking within their articles to external sources. One problem is that is seems to give the new link text a style based on the style of the anchor tag on the host website (e.g. blue text 10px). This doesn't look very good for words that appear in headings (e.g. look at some of the New Orleans stories on the BBC new site). Is there a way to make it keep the original text size and font, but maybe just change the color or add an onhover underline? I tried this but I'm afraid it was beyond my rather poor skills.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel