Results 1 to 7 of 7

Thread: Delete referer when clicking links.

  1. #1

    Joined
    Jul 2012
    Posts
    1,888
    Thanks
    1,619
    Thanked
    3,297/1,003
    DL/UL
    223/0
    Mentioned
    469 times
    Time Online
    132d 23h 52m
    Avg. Time Online
    45m

    Delete referer when clicking links.

    I think there used to be this feature that erased the referer when linking outside clraik.

    That was a good feature why was it taken down?
    At least use it for images for those thread with lots of images linking directly to neopets.
    I'm looking at you Mophead.


    I'm also doing it with the Advent Calendar Thread though.

  2. The Following 2 Users Say Thank You to Daviid For This Useful Post:

    Accelerator (12-01-2016),j03 (12-01-2016)

  3. #2
    Saiyan Race
    j03's Avatar
    Joined
    Dec 2011
    Posts
    13,711
    Userbars
    166
    Thanks
    5,895
    Thanked
    33,055/6,606
    DL/UL
    23/36
    Mentioned
    3,867 times
    Time Online
    562d 10h 49m
    Avg. Time Online
    3h 14m
    Gonna make this happen soon
    (you need an account to see links)
    (you need an account to see links)(you need an account to see links)

    ------------------------
    [02/24/2013] Stealth CORE is made into the first standalone Neopets auto-player.
    ------------------------


  4. The Following 3 Users Say Thank You to j03 For This Useful Post:

    Daviid (12-01-2016),neoplux (12-05-2016),Teakwood (12-02-2016)

  5. #3
    Accelerator's Avatar
    Joined
    Jul 2013
    Posts
    4,995
    Userbars
    26
    Thanks
    1,986
    Thanked
    3,789/1,696
    DL/UL
    178/0
    Mentioned
    744 times
    Time Online
    335d 1h 18m
    Avg. Time Online
    2h 3m
    @(you need an account to see links) for now/as a workaround just use Fiddler/Charles and replace the body (response) from "http://www.neopets.com" to "https://href.li/?http://www.neopets.com"

    (you need an account to see links)
    (you need an account to see links)
    (you need an account to see links)
    (you need an account to see links)

    "Date et dabitur vobis"
    「Let's fight 恐れはない」


    "A quantum supercomputer calculating for a thousand years could not even approach the number of f��ks I do not give"

    「君が望むモノは何?」

  6. The Following User Says Thank You to Accelerator For This Useful Post:

    Daviid (12-01-2016)

  7. #4

    Joined
    Jul 2012
    Posts
    1,888
    Thanks
    1,619
    Thanked
    3,297/1,003
    DL/UL
    223/0
    Mentioned
    469 times
    Time Online
    132d 23h 52m
    Avg. Time Online
    45m
    Quote Originally Posted by Accelerator View Post
    @(you need an account to see links) for now/as a workaround just use Fiddler/Charles and replace the body (response) from "http://www.neopets.com" to "https://href.li/?http://www.neopets.com"

    Code:
    // ==UserScript==
    //  @(you need an account to see links)         DeReferer
    //  @(you need an account to see links)space    (you need an account to see links)
    // @version      0.1
    //  @(you need an account to see links)cription  try to take over the world!
    // @author       You
    //  @(you need an account to see links)ch        (you need an account to see links)
    // @grant        none
    // ==/UserScript==
    
    (function() {
        'use strict';
        String.prototype.replaceAll = function(str1, str2, ignore) {
            return this.replace(new RegExp(str1.replace(/([\/\,\!\\\^\$\{\}\[\]\(\)\.\*\+\?\|\<\>\-\&])/g,"\\$&"),(ignore?"gi":"g")),(typeof(str2)=="string")?str2.replace(/\$/g,"$$$$"):str2);
        };
        document.body.innerHTML = document.body.innerHTML.replaceAll("http://www.neopets.com","https://href.li/?http://www.neopets.com");
    })();
    Made this to have it always on even without fiddler or charles proxy.
    Does anyone have any idea why does it breaks the text editor?

    Edit:

    @(you need an account to see links)
    (you need an account to see links)
    Last edited by Daviid; 12-01-2016 at 07:52 PM.

  8. #5
    Accelerator's Avatar
    Joined
    Jul 2013
    Posts
    4,995
    Userbars
    26
    Thanks
    1,986
    Thanked
    3,789/1,696
    DL/UL
    178/0
    Mentioned
    744 times
    Time Online
    335d 1h 18m
    Avg. Time Online
    2h 3m
    Quote Originally Posted by Daviid View Post
    Code:
    // ==UserScript==
    // @(you need an account to see links)         DeReferer
    // @(you need an account to see links)space    (you need an account to see links)
    // @version      0.1
    // @(you need an account to see links)cription  try to take over the world!
    // @author       You
    // @(you need an account to see links)ch        (you need an account to see links)
    // @grant        none
    // ==/UserScript==
    
    (function() {
        'use strict';
        String.prototype.replaceAll = function(str1, str2, ignore) {
            return this.replace(new RegExp(str1.replace(/([\/\,\!\\\^\$\{\}\[\]\(\)\.\*\+\?\|\<\>\-\&])/g,"\\$&"),(ignore?"gi":"g")),(typeof(str2)=="string")?str2.replace(/\$/g,"$$$$"):str2);
        };
        document.body.innerHTML = document.body.innerHTML.replaceAll("http://www.neopets.com","https://href.li/?http://www.neopets.com");
    })();
    Made this to have it always on even without fiddler or charles proxy.
    Does anyone have any idea why does it breaks the text editor?
    Haven't tried it, but isn't this simpler? LMAO
    Code:
    document.body.innerHTML = document.body.innerHTML.replace(/http:\/\/www.neopets.com/g, 'https://href.li/?http://www.neopets.com');

    (you need an account to see links)
    (you need an account to see links)
    (you need an account to see links)
    (you need an account to see links)

    "Date et dabitur vobis"
    「Let's fight 恐れはない」


    "A quantum supercomputer calculating for a thousand years could not even approach the number of f��ks I do not give"

    「君が望むモノは何?」

  9. #6

    Joined
    Jul 2012
    Posts
    1,888
    Thanks
    1,619
    Thanked
    3,297/1,003
    DL/UL
    223/0
    Mentioned
    469 times
    Time Online
    132d 23h 52m
    Avg. Time Online
    45m
    Quote Originally Posted by Accelerator View Post
    Haven't tried it, but isn't this simpler? LMAO
    Code:
    document.body.innerHTML = document.body.innerHTML.replace(/http:\/\/www.neopets.com/g, 'https://href.li/?http://www.neopets.com');
    Yes.
    TBH I don't even remember what problem did I encounter to use the "String.prototype.replaceAll" and it was just 8 minutes ago.

    Probably the "\/\/"?
    2 AM, should go to sleep now.

  10. The Following User Says Thank You to Daviid For This Useful Post:

    Accelerator (12-01-2016)

  11. #7
    Saiyan Race
    j03's Avatar
    Joined
    Dec 2011
    Posts
    13,711
    Userbars
    166
    Thanks
    5,895
    Thanked
    33,055/6,606
    DL/UL
    23/36
    Mentioned
    3,867 times
    Time Online
    562d 10h 49m
    Avg. Time Online
    3h 14m
    (you need an account to see links)
    (you need an account to see links)(you need an account to see links)

    ------------------------
    [02/24/2013] Stealth CORE is made into the first standalone Neopets auto-player.
    ------------------------


  12. The Following User Says Thank You to j03 For This Useful Post:

    txtsd (12-13-2016)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •