替换和删除url所包含的参数,如url包含http://www.xxx.com/img.jpg!besoo_shuiyin,加上以下js代码后点击链接则自动去掉!besoo_shuiyin参数
<script> var a = document.body.getElementsByClassName('swipebox-img'); for(var i = 0; i < a.length; i++){ a[i].onclick = function(){ this.href = this.href.replace(/!besoo_shuiyin/, ""); return this.href } } </script>
每日壁纸