<textarea id="myTextarea">
εδώ βάζεις coreimg, chronos, imgmaid</textarea>
<button type="button" onclick="myFunction()">Δώσ'μου τα μουνιά</button>
<textarea id="myTextarea2">
εδώ βάζεις imagetwist, όλα όσα έχουν thumb "small"
</textarea>
<button type="button" onclick="myFunction2()">Δώσ'μου τα μουνιά</button>
<p id="links"></p>
<script>
function myFunction() {
var x = document.getElementById("myTextarea").value;
x = x.replace(/http:\/\/coreimg\.net\/t\/020/g, "http://i020.coreimg.net/i");
x = x.replace(/http:\/\/coreimg\.net\/t\/010/g, "http://i010.coreimg.net/i");
x = x.replace(/http:\/\/chronos\.to\/t\/011/g, "http://i011.chronos.to/i");
x = x.replace(/http:\/\/chronos\.to\/t\/012/g, "http://i012.chronos.to/i");
x = x.replace(/http:\/\/chronos\.to\/t\/013/g, "http://i013.chronos.to/i");
x = x.replace(/http:\/\/chronos\.to\/t\/021/g, "http://i021.chronos.to/i");
x = x.replace(/http:\/\/chronos\.to\/t\/022/g, "http://i022.chronos.to/i");
x = x.replace(/http:\/\/chronos\.to\/t\/023/g, "http://i023.chronos.to/i");
x = x.replace(/http:\/\/chronos\.to\/t\/031/g, "http://i031.chronos.to/i");
x = x.replace(/http:\/\/chronos\.to\/t\/032/g, "http://i032.chronos.to/i");
x = x.replace(/http:\/\/chronos\.to\/t\/033/g, "http://i033.chronos.to/i");
x = x.replace(/http:\/\/imgmaid\.net\/t\/010/g, "http://i010.imgmaid.net/i");
x = x.replace(/http:\/\/imgmaid\.net\/t\/020/g, "http://i020.imgmaid.net/i");
x = x.replace(/\n/g,".jpg</br>");
document.getElementById("links").innerHTML = x;
}
</script>
<script>
function myFunction2() {
var x = document.getElementById("myTextarea2").value;
x = x.replace(/small/g, "big");
x = x.replace(/\_t/g, "" );
x = x.replace(/\/th\//g, "/i/");
x = x.replace(/\n/g,"</br>");
document.getElementById("links").innerHTML = x;
}
</script>
Μην κλικάρετε τις εικόνες.Έτσι θα βγάζει λεφτά ο γυφταρμάς (έστω και φραγκοδίφραγκα).