Kentsmith9 (talk | contribs) (→Display user's Wiki page =: heading fix) |
Kentsmith9 (talk | contribs) (→Expanded views: changed order) |
||
Line 23: | Line 23: | ||
</pre> | </pre> | ||
=== Display user's | === Display user's forum posts === | ||
<pre style="white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap; white-space:pre-wrap; word-wrap:break-word;"> | <pre style="white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap; white-space:pre-wrap; word-wrap:break-word;"> | ||
javascript:(function(){ | javascript:(function(){ | ||
Line 36: | Line 35: | ||
} | } | ||
if (s == "") { | if (s == "") { | ||
var s = prompt("Enter Username | var s = prompt("Enter Username to view forum posts (or highlight name before selecting bookmarklet)."); | ||
} | } | ||
if ((s != "") && (s != null)) { | if ((s != "") && (s != null)) { | ||
window.location.href="http:// | window.location.href="http://www.waze.com/forum/search.php?keywords=&terms=all&sv=0&sc=1&sf=all&sr=posts&sk=t&sd=d&st=0&ch=300&t=0&submit=Search&author="+s; | ||
} | } | ||
})(); | })(); | ||
</pre> | </pre> | ||
=== Display user's Wiki | === Display user's Wiki page === | ||
<pre style="white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap; white-space:pre-wrap; word-wrap:break-word;"> | <pre style="white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap; white-space:pre-wrap; word-wrap:break-word;"> | ||
javascript:(function(){ | javascript:(function(){ | ||
var s = | var s = ''; | ||
if (window.getSelection) { | if (window.getSelection) { | ||
s = window.getSelection(); | s = window.getSelection(); | ||
Line 57: | Line 56: | ||
} | } | ||
if (s == "") { | if (s == "") { | ||
var s = prompt("Enter Username for Wiki | var s = prompt("Enter Username for Wiki user page (or highlight name before selecting bookmarklet)."); | ||
} | } | ||
if ((s != "") && (s != null)) { | if ((s != "") && (s != null)) { | ||
window.location.href="http://wiki.waze.com/wiki/ | window.location.href="http://wiki.waze.com/wiki/User:"+s; | ||
} | } | ||
})(); | })(); | ||
</pre> | </pre> | ||
=== Display user's | === Display user's Wiki contributions === | ||
<pre style="white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap; white-space:pre-wrap; word-wrap:break-word;"> | <pre style="white-space:-moz-pre-wrap; white-space:-pre-wrap; white-space:-o-pre-wrap; white-space:pre-wrap; word-wrap:break-word;"> | ||
javascript:(function(){ | javascript:(function(){ | ||
var s = | var s = ""; | ||
if (window.getSelection) { | if (window.getSelection) { | ||
s = window.getSelection(); | s = window.getSelection(); | ||
Line 77: | Line 77: | ||
} | } | ||
if (s == "") { | if (s == "") { | ||
var s = prompt("Enter Username | var s = prompt("Enter Username for Wiki contributions (or highlight name before selecting bookmarklet)."); | ||
} | } | ||
if ((s != "") && (s != null)) { | if ((s != "") && (s != null)) { | ||
window.location.href="http:// | window.location.href="http://wiki.waze.com/wiki/Special:Contributions/"+s; | ||
} | } | ||
})(); | })(); |
Revision as of 20:05, 5 June 2014
Expanded views
These expanded view scripts serve as the source for the scripts on Bookmarklets. Be sure when updating any of the scripts on that page that the update is first done with this code and then pass the code through the a Javascript compressor like this one and then paste that result into the main page.
Crete private message for user
javascript:(function(){ var s = ''; if (window.getSelection) { s = window.getSelection(); } else if (document.getSelection) { s = document.getSelection(); } else if (document.selection) { s = document.selection.createRange().text; } if (s == "") { var s = prompt("Enter Username for sending PM (or highlight name before selecting bookmarklet)."); } if ((s != "") && (s != null)) { window.location.href="http://www.waze.com/forum/ucp.php?i=pm&mode=compose&username="+s; } })();
Display user's forum posts
javascript:(function(){ var s = ''; if (window.getSelection) { s = window.getSelection(); } else if (document.getSelection) { s = document.getSelection(); } else if (document.selection) { s = document.selection.createRange().text; } if (s == "") { var s = prompt("Enter Username to view forum posts (or highlight name before selecting bookmarklet)."); } if ((s != "") && (s != null)) { window.location.href="http://www.waze.com/forum/search.php?keywords=&terms=all&sv=0&sc=1&sf=all&sr=posts&sk=t&sd=d&st=0&ch=300&t=0&submit=Search&author="+s; } })();
Display user's Wiki page
javascript:(function(){ var s = ''; if (window.getSelection) { s = window.getSelection(); } else if (document.getSelection) { s = document.getSelection(); } else if (document.selection) { s = document.selection.createRange().text; } if (s == "") { var s = prompt("Enter Username for Wiki user page (or highlight name before selecting bookmarklet)."); } if ((s != "") && (s != null)) { window.location.href="http://wiki.waze.com/wiki/User:"+s; } })();
Display user's Wiki contributions
javascript:(function(){ var s = ""; if (window.getSelection) { s = window.getSelection(); } else if (document.getSelection) { s = document.getSelection(); } else if (document.selection) { s = document.selection.createRange().text; } if (s == "") { var s = prompt("Enter Username for Wiki contributions (or highlight name before selecting bookmarklet)."); } if ((s != "") && (s != null)) { window.location.href="http://wiki.waze.com/wiki/Special:Contributions/"+s; } })();
Links for evaluation
Javascript Compressor - takes formatted javascript and compresses it to remove unnecessary spaces.