[Javascript/Regex/Greasemonkey]Need help with .replace menu

Shout-Out

User Tag List

Results 1 to 2 of 2
  1. #1
    DrWho1988's Avatar Elite User
    Reputation
    387
    Join Date
    Oct 2007
    Posts
    554
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Javascript/Regex/Greasemonkey]Need help with .replace

    I'm looking for someone to make a script (or help me make one) to allow me to use Download Them All for full size images on One Click Chicks Forum galleries. This is a porn site, so if you're offended please don't click the links.

    I can send you a PM you with my info, if you wish, so there will be no need to register. All that would be needed was a script that changed all links that contain .com/group.php?do=picture to .com/picture.php?do=picture. All text before and after that part stays exactly the same. That would generate direct links to the image instead of to a gallery that displays the image, which I could then download the links with DTA.

    I attempted to make one myself using
    .replace function but my JS knowledge is very limited. This is a serious topic, I will be using this as a learning tool for JS and RegEx as well. I can remove the link if a moderator feels it's inappropriate and +Rep will be given to anyone nice enough to help out
    Last edited by DrWho1988; 10-12-2010 at 09:05 PM.

    "I am just absolutely convinced that the best formula for giving us peace and preserving the American way of life is freedom, limited government, and minding our own business overseas." - Ron Paul

    [Javascript/Regex/Greasemonkey]Need help with .replace
  2. #2
    Glitchy's Avatar ★ Elder ★
    Reputation
    1277
    Join Date
    Jun 2007
    Posts
    985
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this should work i believe i have not tested it though.

    Code:
    var links=document.getElementsByTagName('a');
    for (var i=0; i < links.length; i++) {        
        links[i].href = links[i].href.replace(".com/group.php?do=picture",".com/picture.php?do=picture");
    }

Similar Threads

  1. Need help with sig
    By sudnrage111 in forum Community Chat
    Replies: 0
    Last Post: 09-24-2006, 02:12 AM
  2. Need help with weapon model edit!
    By Chewbbaca in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 09-20-2006, 07:02 PM
  3. need help with model editing experts please
    By sportstud10124 in forum Community Chat
    Replies: 0
    Last Post: 08-10-2006, 09:30 PM
  4. need help with shammy talents
    By jason in forum World of Warcraft General
    Replies: 5
    Last Post: 07-19-2006, 02:02 AM
  5. Need Help with WoW Glider
    By paypal in forum World of Warcraft General
    Replies: 2
    Last Post: 07-07-2006, 02:08 AM
All times are GMT -5. The time now is 08:35 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search