User:V111P/js/WebRef: Difference between revisions

Content deleted Content added
m top: Replaced deprecated <source> tags with <syntaxhighlight>
 
(One intermediate revision by one other user not shown)
Line 9:
The script can be used as a [[bookmarklet]] with the following address:
<div style="width:95%; overflow:auto; border: 2px solid #088">
<sourcesyntaxhighlight lang="javascript">javascript:(function(){var d=document,s=d.createElement('script');s.src='//en.wikipedia.org/w/index.php?title=User:V111P/js/webRef.js&action=raw&ctype=text/javascript&smaxage=43200&maxage=86400';d.body.appendChild(s);})();</sourcesyntaxhighlight>
</div>
 
Line 21:
* In Firefox click on any bookmark in the bookmark menu. (It will be more convenient if you turn on the Bookmarks toolbar from ''View/Toolbars/Bookmarks toolbar'' and create the bookmarklet there.) Select ''New Bookmark'', enter a name (for example ''WebRef'') in the Name field, enter the script given above in the address field (Location).
* In Internet Explorer you can create a bookmark of any page in the usual manner (Add to favorites), then right-click it in the favorites menu, choose Properties, enter the JavaScript given above in the URL field, change the name (in the General section) to ''WebRef''.
* In Google Chrome and Opera (Windows and Linux) - press Ctrl+D and then the button Edit (for Chrome) or Properties (for Opera), and change the name to ''WebRef'' and address as forto the otherscript browsersabove.
* In Google Chrome (Mac) – press Cmd-D then the button More, and change the name to ''WebRef'' and address as forto the otherscript browsersabove.
 
There is a second set of instructions further below if you have problems with these.