Theme123 URLs to Links

Turns all the non linked URLs to links on Theme123.net

  1. // ==UserScript==
  2. // @name Theme123 URLs to Links
  3. // @namespace http://tapy.com
  4. // @version 0.1
  5. // @description Turns all the non linked URLs to links on Theme123.net
  6. // @author Travis
  7. // @match http://theme123.net/*
  8. // @grant none
  9. // ==/UserScript==
  10. $("code:contains('http')").filter(function(){
  11. return this.innerHTML.indexOf('http') == 0;
  12. }).each(function(index){
  13. this.innerHTML = '<a href="' + this.innerHTML + '">' + this.innerHTML + '</a>';
  14. });