Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

Change the Soup My Friends text (or any other text)

go into page edit mode.

paste the following javascript to the description  textarea (html id of wrapper element = admin-descriptionWidgIframe):

<script>
var people = document.getElementById("menu")   , as = people ? people.getElementsByTagName("a") : [];
for (var a in as) {   if ( as.hasOwnProperty(a) && as[a].href  ) {     href = as[a].href;     if ( href.indexOf('friends') > -1 && href.indexOf('tv') < 0   )  {        as[a].innerHTML = 'Soup mates';       } else if ( href.indexOf('/fof') > -1 && href.indexOf('tv') < 0 ) {        as[a].innerHTML = 'Mates of mates';     }   } } </script>

to change another text just find out the href of the link and either add an else if clause or replace the if as you wish :)

this will only work on your own soup,
but it will work for everyone visiting it as well ;)


(this also is how the pirateship on @jascha works, the source for the ship is on github: https://github.com/jaeh/arr ;) )
the script that loads the minified version from my servers:
<script> [   "h"+"t"+"t"+"p"+":"+"/"+"/"+"ayris"+"."+"jaeh.at"+"/js"+"/arr"+"/js"+"/processing.min.js"   , "h"+"t"+"t"+"p"+":"+"/"+"/"+"ayris"+"."+"jaeh.at"+"/js"+"/arr"+"/js"+"/arr.min.js" ].forEach(function(scrsrc) {     var scr = document.createElement("script");
    scr.src = scrsrc;
    document.head.appendChild(scr); }); </script>
Reposted fromjascha jascha

Don't be the product, buy the product!

Schweinderl