Page 1 of 2 12 Last >>
Results 1 to 15 of 17

Thread: switching k2s to tez  

  1. #1
    Active Member
    Joined
    8 Aug 2023
    Posts
    166
    Likes
    52
    Images
    0

    switching k2s to tez

    I bookmarked several threads where the posted k2s links could be changed to tez (tez I find to be faster and drops less frequent) but now all of a sudden the link switch no longer works

  2. #2
    Active Member RobinHood66's Avatar
    Joined
    8 Mar 2026
    Posts
    1,127
    Likes
    1,128
    Images
    1,510
    Location
    Lost In The Forest 

    Re: switching k2s to tez

    i'm a little late on this one.

    i hope issues have resolved themselves for you my friend.

    i find it currently working for me

  3. #3
    Active Member
    Joined
    11 Nov 2023
    Posts
    50
    Likes
    55
    Images
    3

    Re: switching k2s to tez

    Someone needs to write a Tampermonkey script that monitors the browser address line and immediately upon noticing a k2s.cc website prefix, replaces it with tezfiles.com instead. Then the script also has a button on the toolbar you can click to toggle easily and quickly between the two.

    If I had the skills and knowledge to write one to do that very thing, I would, but unfortunately I don't.
    Last edited by RabidBaboon; 19th May 2026 at 09:00.

  4. Liked by 1 user: twat

  5. #4
    Super Moderator twat's Avatar
    Joined
    1 Jun 2019
    Posts
    26,755
    Likes
    204,037
    Images
    2,680,556
    Location
    Poontown 

    Re: switching k2s to tez

    Quote Originally Posted by RabidBaboon View Post
    Someone needs to write a Tampermonkey script that monitors the browser address line and immediately upon noticing an https://k2s.cc website prefix, replaces it with https://tezfiles.com instead. Then the script also has a button on the toolbar you can click to toggle easily and quickly between the two.

    If I had the skills and knowledge to write one to do that very thing, I would, but unfortunately I don't.
    Here ya go:

    https://twat.ca/tools/k2s-to-tezfiles.user.js

    (Use the link above to ensure you get the latest version.)

    // ==UserScript==
    // @name         k2s.cc β†’ tezfiles.com Smart Redirector
    // @namespace    https://twat.ca/
    // @version      2.3
    // @description  Auto-redirects k2s.cc URLs to tezfiles.com once per unique URL. Auto-reverts if tezfiles shows a "no longer available" error. Always ensures ?site=vipergirls.to on both domains.
    // @author       twat
    // @match        *://k2s.cc/*
    // @match        *://*.k2s.cc/*
    // @match        *://tezfiles.com/*
    // @match        *://*.tezfiles.com/*
    // @grant        GM_getValue
    // @grant        GM_setValue
    // @grant        GM_registerMenuCommand
    // @run-at       document-start
    // ==/UserScript==
    
    (function () {
        'use strict';
    
        const K2S_HOST  = 'k2s.cc';
        const TEZ_HOST  = 'tezfiles.com';
        const STORE_KEY = 'k2s_tried_paths';
        const SITE_VAL  = 'vipergirls.to';
    
        const host = location.hostname;
    
        // ── URL helpers ──────────────────────────────────────────────────────────
    
        // Returns the path+search+hash, with ?site=vipergirls.to set (added or replaced).
        function withSiteParam(path) {
            // Split off any hash
            const hashIdx = path.indexOf('#');
            const hash    = hashIdx >= 0 ? path.slice(hashIdx) : '';
            const pathAndQuery = hashIdx >= 0 ? path.slice(0, hashIdx) : path;
    
            const qIdx = pathAndQuery.indexOf('?');
            const pathname = qIdx >= 0 ? pathAndQuery.slice(0, qIdx) : pathAndQuery;
            const params   = new URLSearchParams(qIdx >= 0 ? pathAndQuery.slice(qIdx + 1) : '');
    
            params.set('site', SITE_VAL);
            return pathname + '?' + params.toString() + hash;
        }
    
        // The tracking key uses only the pathname (no query/hash) so ?site=vipergirls.to
        // doesn't create a separate entry from the bare URL.
        const trackingKey = location.pathname;
    
        // The full path we'll carry across domains (pathname + params with ?site=vipergirls.to).
        const currentPath = withSiteParam(
            location.pathname + location.search + location.hash
        );
    
        // ── Storage helpers ──────────────────────────────────────────────────────
    
        function getTried() {
            try { return new Set(JSON.parse(GM_getValue(STORE_KEY, '[]'))); }
            catch { return new Set(); }
        }
    
        function markTried(key) {
            const set = getTried();
            set.add(key);
            GM_setValue(STORE_KEY, JSON.stringify([...set]));
        }
    
        function clearTried(key) {
            const set = getTried();
            set.delete(key);
            GM_setValue(STORE_KEY, JSON.stringify([...set]));
        }
    
        // ── Ensure ?site=vipergirls.to is present on the current page ───────────────────
        // If the current URL is missing it (or has a different value), correct it
        // silently before doing anything else.
    
        function ensureSiteParam() {
            const params = new URLSearchParams(location.search);
            if (params.get('site') !== SITE_VAL) {
                const corrected = withSiteParam(
                    location.pathname + location.search + location.hash
                );
                history.replaceState(null, '', corrected);
            }
        }
    
        // ── On k2s.cc: redirect once to tezfiles, then stay out of the way ──────
    
        if (host === K2S_HOST || host.endsWith('.' + K2S_HOST)) {
    
            ensureSiteParam();
    
            if (!getTried().has(trackingKey)) {
                markTried(trackingKey);
                location.replace('https://' + TEZ_HOST + currentPath);
            }
    
            GM_registerMenuCommand('↻ Re-try on tezfiles.com', () => {
                clearTried(trackingKey);
                location.href = 'https://' + TEZ_HOST + currentPath;
            });
        }
    
        // ── On tezfiles.com: ensure param, watch for error, auto-revert ──────────
    
        if (host === TEZ_HOST || host.endsWith('.' + TEZ_HOST)) {
    
            ensureSiteParam();
    
            function revertToK2S() {
                location.replace('https://' + K2S_HOST + currentPath);
            }
    
            function isUnavailableEl(el) {
                return (
                    el.matches &&
                    el.matches('div.alert.alert-danger') &&
                    el.textContent.includes('This file is no longer available')
                );
            }
    
            function scanPage() {
                const alerts = document.querySelectorAll('div.alert.alert-danger');
                for (const el of alerts) {
                    if (el.textContent.includes('This file is no longer available')) return true;
                }
                return false;
            }
    
            const observer = new MutationObserver((mutations) => {
                for (const mutation of mutations) {
                    for (const node of mutation.addedNodes) {
                        if (node.nodeType !== Node.ELEMENT_NODE) continue;
                        if (isUnavailableEl(node)) {
                            observer.disconnect();
                            revertToK2S();
                            return;
                        }
                        const found = node.querySelector && node.querySelector('div.alert.alert-danger');
                        if (found && found.textContent.includes('This file is no longer available')) {
                            observer.disconnect();
                            revertToK2S();
                            return;
                        }
                    }
                }
            });
    
            function startObserver() {
                observer.observe(document.documentElement || document.body, {
                    childList: true,
                    subtree: true,
                });
            }
    
            if (document.readyState === 'loading') {
                document.addEventListener('DOMContentLoaded', () => {
                    if (scanPage()) { revertToK2S(); return; }
                });
                startObserver();
            } else {
                if (scanPage()) { revertToK2S(); return; }
                startObserver();
            }
    
            setTimeout(() => observer.disconnect(), 15000);
    
            GM_registerMenuCommand('← No mirror β€” revert to k2s.cc', revertToK2S);
        }
    
    })();

    Enjoy
    Last edited by twat; 19th May 2026 at 16:21. Reason: Updated version
    click here for complete list of my collection threads
    GirlsOnlyPorn β€’ MomLover network β€’ Nubiles.net (2004-2025 megathread) β€’ PacificGirls β€’ BoppingBabes β€’ UpskirtJerk
    AJ Applegate β€’ Aria Alexander β€’ Darcie Belle β€’ Dionisia β€’ Georgia Jones β€’ Hannah Hays β€’ Kagney Linn Karter β€’ Kate England β€’ Kenzie Madison β€’ Kylie Page
    Lanna Carter β€’ Laya Rae β€’ Lily Blossom β€’ Lucy Briggs β€’ Morticia β€’ Red Fox β€’ Shelby Good β€’ Tara Ashley β€’ Veronica Weston β€’ Willa Prescott β€’ Zarena Summers

    (Studio Prefix Table)

    If you notice any errors or broken/missing images in my posts, please PM me so I can fix them – cheers :)
    YOUR MOM'S GOT A TWATβ„’


  6. #5
    Active Member
    Joined
    11 Nov 2023
    Posts
    50
    Likes
    55
    Images
    3

    Re: switching k2s to tez

    Very good and does work, but it's not exactly the right implementation because not all K2S links are interchangeable with Tez. Only about 50% or so are mirrored on Tez successfully. So rather than swapping everything K2S on every webpage as displayed, it needs to be a bit more targeted to be useful.

    This is why I requested the implementation to be thus:
    t!nyurl.com/27u3c5yp
    It really needs to only monitor the address bar and make the change there, not on the raw webpage. This way the user can copy the raw link as posted to the address bar, whereupon it will be seen by the script and changed if neccessary. If that link then works, fine job done, success. If it doesn't work, then that means there is no mirror on Tez and it needs to be flicked back to the original K2S link again, which is where the toolbar button would come in to manually force it back again. Obviously this means the script to convert from K2S to Tez must only work once and then stop for each unique link, otherwise the manual button conversion back will then be converted again to Tez and you'd never be able to use the original K2S link if you really needed to (no Tez mirror)

  7. #6
    Super Moderator twat's Avatar
    Joined
    1 Jun 2019
    Posts
    26,755
    Likes
    204,037
    Images
    2,680,556
    Location
    Poontown 

    Re: switching k2s to tez

    Try now... it monitors address, converts to tezfiles, then goes back to k2s automatically if there's no file. Same URL.
    click here for complete list of my collection threads
    GirlsOnlyPorn β€’ MomLover network β€’ Nubiles.net (2004-2025 megathread) β€’ PacificGirls β€’ BoppingBabes β€’ UpskirtJerk
    AJ Applegate β€’ Aria Alexander β€’ Darcie Belle β€’ Dionisia β€’ Georgia Jones β€’ Hannah Hays β€’ Kagney Linn Karter β€’ Kate England β€’ Kenzie Madison β€’ Kylie Page
    Lanna Carter β€’ Laya Rae β€’ Lily Blossom β€’ Lucy Briggs β€’ Morticia β€’ Red Fox β€’ Shelby Good β€’ Tara Ashley β€’ Veronica Weston β€’ Willa Prescott β€’ Zarena Summers

    (Studio Prefix Table)

    If you notice any errors or broken/missing images in my posts, please PM me so I can fix them – cheers :)
    YOUR MOM'S GOT A TWATβ„’


  8. #7
    Active Member
    Joined
    11 Nov 2023
    Posts
    50
    Likes
    55
    Images
    3

    Re: switching k2s to tez

    Quote Originally Posted by twat View Post
    Try now... it monitors address, converts to tezfiles, then goes back to k2s automatically if there's no file. Same URL.
    Genius. Now, if you could make it automatically overwrite any pre-existing referrer code (if present) with ?site=vipergirls.to instead to the copied link, then this will become an essential downloading script tool for not only this forum, but all others too.

    Tip for any others trying this script:
    Do not have both v1.1 and v2.2 installed at the same time. v2.2 does not overwrite v1.1 and if you have both present, copying a link will send your browser into an endless loop.
    Last edited by RabidBaboon; 19th May 2026 at 11:14.

  9. Liked by 2 users: roger33, twat

  10. #8
    Super Moderator twat's Avatar
    Joined
    1 Jun 2019
    Posts
    26,755
    Likes
    204,037
    Images
    2,680,556
    Location
    Poontown 

    Re: switching k2s to tez

    Quote Originally Posted by RabidBaboon View Post
    Genius. Now, if you could make it automatically overwrite any pre-existing referrer code (if present) with ?site=vipergirls.to instead to the copied link, then this will become an essential downloading script tool for not only this forum, but all others too.

    Tip for any others trying this script:
    Do not have both v1.1 and v2.2 installed at the same time. v2.2 does not overwrite v1.1 and if you have both present, copying a link will send your browser into an endless loop.
    v2.3 sets the site parameter to vipergirls.to ... I updated the post to remove the earlier versions so it won't happen to anyone else.
    click here for complete list of my collection threads
    GirlsOnlyPorn β€’ MomLover network β€’ Nubiles.net (2004-2025 megathread) β€’ PacificGirls β€’ BoppingBabes β€’ UpskirtJerk
    AJ Applegate β€’ Aria Alexander β€’ Darcie Belle β€’ Dionisia β€’ Georgia Jones β€’ Hannah Hays β€’ Kagney Linn Karter β€’ Kate England β€’ Kenzie Madison β€’ Kylie Page
    Lanna Carter β€’ Laya Rae β€’ Lily Blossom β€’ Lucy Briggs β€’ Morticia β€’ Red Fox β€’ Shelby Good β€’ Tara Ashley β€’ Veronica Weston β€’ Willa Prescott β€’ Zarena Summers

    (Studio Prefix Table)

    If you notice any errors or broken/missing images in my posts, please PM me so I can fix them – cheers :)
    YOUR MOM'S GOT A TWATβ„’

  11. Liked by 4 users: Pixel, RabidBaboon, roger33, version365

  12. #9
    Active Member
    Joined
    11 Nov 2023
    Posts
    50
    Likes
    55
    Images
    3

    Re: switching k2s to tez

    Absolutely brilliant and works as described. Two tiny itsy bitsy annoyances I hadn't anticipated.

    1. Does the script capture old links using the old keep2share.com prefix as well as the new k2s.cc one? There aren't many of these still around, but occasionally they crop up from time to time and are still alive links.

    2. Something I've only noticed in testing and hadn't anticipated is that K2S captures and reacts to any referrer codes on the very first instance from any unique IP of that link use. If there is no referrer code at all on the very first submission of a link from a specific IP, then K2S does not respect any future addition of a referrer code from there on using the same IP address. ie. once the referrer has been seen as NONE, it will remain NONE from there on no matter how you try to go about adding a referrer code thereafter (unless you change IP and become another unique requester). Once burnt, always burnt.

    What this means is that in the case of a working K2S link with no Tez mirror, what happens is…
    • Raw K2S link without any referrer suffix is sent to address bar and executed
      Link converted to Tez equivalent and ?site=vipergirls.to suffix added
      Tez link fails to find a valid hosted file
      Link converted back to K2S this time still with ?site=vipergirls.to suffix
      Download begins but at nil-referrer speed because the first processing of the link was back at step one before the conversion to Tez+referrer suffix
      Download proceeds at 15kB/s instead of 75kB/s because the referrer code has been ignored by K2S


    I guess it's a sequence thing. The referrer code ?site=vipergirls.to needs to be added first and foremost before everything else, so that K2S sees it from the very first file request.

    Other than this one little annoyance, the script works perfectly as long as one remembers to manually add (or overwrite any existing suffix) with ?site=vipergirls.to prior to requesting the first K2S link
    Last edited by RabidBaboon; 20th May 2026 at 11:24.

  13. Liked by 1 user: roger33

  14. #10
    Elite Prospect Rex's Avatar
    Joined
    21 Jul 2019
    Posts
    11,566
    Likes
    315,135
    Images
    1,320,275

    Re: switching k2s to tez

    Just a heads up regarding this particular 'bypass', since yesterday this will not longer work on futures files since a new update. As uploaders, now we have to put the files on a certain folder in order to be visible (similar to what happened with FileBoom), so keep in mind if your file isn't available in other hosts, its because of this.

  15. Liked by 3 users: RabidBaboon, roger33, version365

  16. #11
    Active Member
    Joined
    11 Nov 2023
    Posts
    50
    Likes
    55
    Images
    3

    Re: switching k2s to tez

    Despite the enshitification of k2s reported by Rex, this script is still hugely useful because of the sheer number of old k2s links that exist with valid Tez mirrors. The mere fact that Tez allows 200kB/s download speed as free user, more than double the 75kB/s speed of k2s means that a quick automated way of checking Tez first is always the preferred option.

  17. Liked by 1 user: roger33

  18. #12
    Elite Prospect Rex's Avatar
    Joined
    21 Jul 2019
    Posts
    11,566
    Likes
    315,135
    Images
    1,320,275

    Re: switching k2s to tez

    Quote Originally Posted by RabidBaboon View Post
    Despite the enshitification of k2s reported by Rex, this script is still hugely useful because of the sheer number of old k2s links that exist with valid Tez mirrors. The mere fact that Tez allows 200kB/s download speed as free user, more than double the 75kB/s speed of k2s means that a quick automated way of checking Tez first is always the preferred option.
    That's explains the stats i see between k2s & Tez (something i noticed while talking to other user on this forum!). I would recommend download everything you can as long it works, because the system as it is right now, it automatically try to set a domain (default: k2s) to the parent folder where you're uploading, so if a uploader isn't careful enough its adios to the whole availability of the files in the other domain.

    Example, i have two kind of folders in my root: one with year->month->day in that order as tree, and one that is basically called weekly where i usually upload my usual uploads then later i take my time and try to set them to a proper folder.

    Before this whole thing, the domain for all folders were 'No domain', this means, the file would be available with the same ID from K2S and TezFiles.

    Since this update two days ago, they changed the API responses (not related to this issue) and once i uploaded a file to a folder without domain it would automatically set it to Keep2Share.

    So now, my weekly is k2s (i can change to Tez and Fboom if i want to, but would kill my links), and the other folders still have no domain because i didn't try to change neither their name or upload a file to these folder, and this early decision literally saved me to kill all my links on my thread and will not upload to these folders never again neither moving files there.

    As discussed before, this change was coming from miles since the updated ToS regarding which content is allowed, with this they will have more control, but at the cost of the switching id trick.

  19. Liked by 1 user: roger33

  20. #13
    Active Member
    Joined
    8 Aug 2023
    Posts
    166
    Likes
    52
    Images
    0

    Re: switching k2s to tez

    some posters' k2s links posted today are still switching to tez !
    definitely worth checking all posts for tez first ,

    then you are just left with lots of k2s links from multiple posters to choose from ,
    who to pick ?

    file sizes are getting higher and k2s d/l speeds are getting lower , and not to mention the drops (which to be fair havent been so bad lately) ,
    75kb for a single/2 link 4K video
    Last edited by npc77; 22nd May 2026 at 17:57.

  21. Liked by 2 users: roger33, version365

  22. #14
    Active Member
    Joined
    11 Nov 2023
    Posts
    50
    Likes
    55
    Images
    3

    Re: switching k2s to tez

    Quote Originally Posted by npc77 View Post
    75kb for a single/2 link 4K video
    This is exactly why I never download 4K videos unless there is no other source. Don't bother with VR content either for same reason. A crippled internet is not the way to be transferring such content. You never know, the internet could eventually become so enshitified and so strangled with legislative restrictions, that physical media and LAN-parties start making a comeback!

  23. Liked by 1 user: roger33

  24. #15
    Super Moderator twat's Avatar
    Joined
    1 Jun 2019
    Posts
    26,755
    Likes
    204,037
    Images
    2,680,556
    Location
    Poontown 

    Re: switching k2s to tez

    Quote Originally Posted by RabidBaboon View Post
    Absolutely brilliant and works as described. Two tiny itsy bitsy annoyances I hadn't anticipated.

    1. Does the script capture old links using the old keep2share.com prefix as well as the new k2s.cc one? There aren't many of these still around, but occasionally they crop up from time to time and are still alive links.

    2. Something I've only noticed in testing and hadn't anticipated is that K2S captures and reacts to any referrer codes on the very first instance from any unique IP of that link use. If there is no referrer code at all on the very first submission of a link from a specific IP, then K2S does not respect any future addition of a referrer code from there on using the same IP address. ie. once the referrer has been seen as NONE, it will remain NONE from there on no matter how you try to go about adding a referrer code thereafter (unless you change IP and become another unique requester). Once burnt, always burnt.

    What this means is that in the case of a working K2S link with no Tez mirror, what happens is…
    • Raw K2S link without any referrer suffix is sent to address bar and executed
      Link converted to Tez equivalent and ?site=vipergirls.to suffix added
      Tez link fails to find a valid hosted file
      Link converted back to K2S this time still with ?site=vipergirls.to suffix
      Download begins but at nil-referrer speed because the first processing of the link was back at step one before the conversion to Tez+referrer suffix
      Download proceeds at 15kB/s instead of 75kB/s because the referrer code has been ignored by K2S


    I guess it's a sequence thing. The referrer code ?site=vipergirls.to needs to be added first and foremost before everything else, so that K2S sees it from the very first file request.

    Other than this one little annoyance, the script works perfectly as long as one remembers to manually add (or overwrite any existing suffix) with ?site=vipergirls.to prior to requesting the first K2S link
    I don't think it's possible... a userscript can't change what you put in the address bar before you've gone to it.

    The only way to change it beforehand is to change the link on original site (like the first version did), or add the site manually before you paste it, or something that runs locally on your computer that modifies the clipboard so it's like that before you paste it. Or maybe a browser extension, but I'm not sure.

    Either way, that's the extent of what I'm capable of.

    Let us know if you figure something out.

    (I updated it to work with keep2share.com, though)
    click here for complete list of my collection threads
    GirlsOnlyPorn β€’ MomLover network β€’ Nubiles.net (2004-2025 megathread) β€’ PacificGirls β€’ BoppingBabes β€’ UpskirtJerk
    AJ Applegate β€’ Aria Alexander β€’ Darcie Belle β€’ Dionisia β€’ Georgia Jones β€’ Hannah Hays β€’ Kagney Linn Karter β€’ Kate England β€’ Kenzie Madison β€’ Kylie Page
    Lanna Carter β€’ Laya Rae β€’ Lily Blossom β€’ Lucy Briggs β€’ Morticia β€’ Red Fox β€’ Shelby Good β€’ Tara Ashley β€’ Veronica Weston β€’ Willa Prescott β€’ Zarena Summers

    (Studio Prefix Table)

    If you notice any errors or broken/missing images in my posts, please PM me so I can fix them – cheers :)
    YOUR MOM'S GOT A TWATβ„’

  25. Liked by 2 users: RabidBaboon, version365

Page 1 of 2 12 Last >>

Posting Permissions