Extra caution is recommended when installing recently uploaded/updated scripts (read more)
Be sure you trust any scripts you install
Wikiproxy: Greasemonkey Edition
Adds Wikipedia links to key terms in webpages
Edited version of the same script posted here
The other script screwed up website formatting by including an image after the newly created links. This one has been modified to remove the images and mark the created links by a dotted underline. The underline is black normally and white on hover to optimise visibility regardless of the formatting of the website.
|
|
Can't get this to work. I enclosed the block beginning "for (var i=0; i<candidates> |
|
|
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? |
|
|
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>" |
|
|
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. |
|
|
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? |
|
|
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. |
You could comment on this script if you were logged in.
