• jocanib@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year ago

      If you make a bookmark on your bookmarks toolbar and put:

      javascript:void(location.href=“https://12ft.io/”+location.href);

      in the URL field, whenever you hit a paywall you can click the bookmark and it’ll take you straight to a 12ft.io version.

      Doesn’t often work with academic papers but it usually does for news and commentary.

      E2A:

      javascript:void(location.href=“https://sci-hub.se/”+location.href);

      is the equivalent for sci-hub (works well for academic papers) but you may need a VPN for some jurisdictions.

      • Nahvi@reseed.it
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        1 year ago

        This seems like a great idea, but doesn’t do anything for me. Are there any caveats? Have tried it in Firefox and Brave.

        • jocanib@lemmy.world
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          Works for me in Firefox.

          Did you make sure you copied the whole line?

          It needs to be a bookmark on your toolbar. It doesn’t work if you can’t click it directly from the page. I don’t know why.

          • Nahvi@reseed.it
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

            Weird. I copied it starting with the “j” and ending with the “;” Also it is on the toolbar.

            I decided to search the exact string and see what came back. Didn’t find a solution to the problem, but did find an alternate version that works for me.

            I appreciate you introducing me to these. They will be super handy in the future.

            Here is the other version in case anyone runs into the same issue.

            javascript: (() => { window.location.replace(“https://12ft.io/” + window.location.href)})();

            From: https://tildes.net/~tech/10ko/little_12ft_io_bookmarklet

            He also has the text for a bookmark a ladder icon in the comments, in case anyone is interested.