User:CruelCow/valve.js

From Team Fortress Wiki
< User:CruelCow
Revision as of 21:36, 16 October 2010 by CruelCow (talk | contribs) (Created page with '//When done, this should allow to filter out unwanted languages. //For now it doesn't do much. //No endsWith function in javascript String.prototype.endsWith = function(str) {…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
//When done, this should allow to filter out unwanted languages. 
//For now it doesn't do much.

//No endsWith function in javascript
String.prototype.endsWith = function(str) 
{return (this.match(str+"$")==str)}

//testing
var pageAddress = "http://wiki.teamfortress.com/w/index.php?title=User:CruelCow/valve.js&action=submit"
//var pageAddress = "http://wiki.teamfortress.com/wiki/Special:RecentChanges"


if( location.href == pageAddress)
{
   //alert('test')
   var tab = getElementsByTagName('table')
   
   
   //alert(tab)
}