Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var links = document.querySelectorAll('a');
- const replaceLinks = () => {
- for(var i = 0; i < links.length; i++) {
- if(links[i].href.indexOf('details.php') > -1) {
- links[i].href = links[i].href.replace(/details.php/g, 'download.php');
- }
- }
- };
- replaceLinks();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement