>> (p.1)
    Author Topic: [Userscript] Automatically append ;dt to the end of URLs (View as DT) [v0.2.3]  (Read 417 times)
    DarkStar_ (OP)
    Legendary
    *
    Offline Offline

    Activity: 2772
    Merit: 3284


    View Profile WWW
    January 13, 2019, 04:14:03 AM
    Last edit: January 13, 2019, 05:50:04 PM by DarkStar_
    Merited by Vod (10), LoyceV (8), suchmoon (7), o_e_l_e_o (6), dkbit98 (3), Hhampuz (2), OgNasty (1), Welsh (1), coinlocket$ (1), The Cryptovator (1), Chivas Regal (1)
     #1

    I made a basic Userscript that will automatically add ";dt" to the end of all[1] bitcointalk URLs. It basically acts as a "View as DefaultTrust" option and can be toggled in Tampermonkey.

    Installation:
    1. Install the Tampermonkey extension (firefox) (chrome) if it is not already installed.
    2. Click here and click the "Install" button (current version: 0.2.3)

    Usage:
    1. Install
    2. Enjoy!
    3. You can disable the script by unchecking the DT Redirect box in Tampermonkey.

    Source Code:
    The source code can be found here.

    Changelog:
    Code:
    v0.1.0 - Released
    v0.2.0 - Changed to inject URLs with ;dt to prevent needless redirects
    v0.2.1 - Adds injection where URL contains only the path
    v0.2.2 - Prevents URLs containing only paths from being injected on sites other than Bitcointalk
    v0.2.3 - Injects URLs with a path of both "/index.php" and "index.php"

    Disclaimer:
    I am not liable for any damages somehow caused by the script.


    [1] Not all URLs are redirected, as some pages break when ;dt is added. Currently, links to direct messages (example) and links that lead to the newest post (example) are excluded as they do not directly lead to a specific message when ;dt is appended. Some other links are excluded as well, but adding ;dt would have no effect on those pages. If there are other pages that break, please let me know and I will exclude them from the script.

    taking a break - expect delayed responses
Page 1
Viewing Page: 1