Bitcoin Forum
June 22, 2018, 09:33:47 PM *
News: Latest stable version of Bitcoin Core: 0.16.1  [Torrent]. (New!)
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Improved images on the forum - Tampermonkey/Greasemonkey user script  (Read 92 times)
EcuaMobi
Legendary
*
Offline Offline

Activity: 1456
Merit: 1172


https://Ecua.Mobi


View Profile WWW
February 27, 2018, 05:32:09 PM
Merited by Cluster2k (1)
 #1

Lately I've been learning/playing with userscript (shortening URLs, modified grue's merit script) so here's my latest addition.

This userscript uses rsz.io as a proxy for images instead of the native ip.bitcointalk.org which can take several seconds to load and has some limitations.
Additionally, big images are reduced to improve readability of threads. By default the max width is 600px and the max height is 400px, but that can be easily modified on the script.
When hovering the reduced image the full version will be shown.

Reduced images load almost instantly and full resolution images are preloaded so the hovering works as smoothly as possible.
As a result everything loads much faster and threads with several images are easier to read.

For example, this thread:
https://bitcointalk.org/index.php?topic=1800909.0
is converted to this:


Here's a more extreme example where you can test this script:
https://bitcointalk.org/index.php?topic=3012663.msg31190942#msg31190942



To install this script get Tampermonkey on Chrome, Greasemonkey on Firefox, or Violentmonkey on Opera (Read more here: https://openuserjs.org/about/Userscript-Beginners-HOWTO) and then install this:
https://openuserjs.org/scripts/EcuaMobi/Bitcointalk_images

If you want to change the max size for images, just open the code of the script after installing it and update MAX_WIDTH and/or MAX_HEIGHT

PGP: KeyBase.io/EcuaMobi [Verify / Encrypt] • 37D06E1D43EC62B874DD56868DAFD805AE6D5F7A
Bitcoin full node: node.ecua.mobiUserscripts for bitcointalk: Improved imagesShort URLs
Domains for sale: Current auctionFull list
1529703227
Hero Member
*
Offline Offline

Posts: 1529703227

View Profile Personal Message (Offline)

Ignore
1529703227
Reply with quote  #2

1529703227
Report to moderator
1529703227
Hero Member
*
Offline Offline

Posts: 1529703227

View Profile Personal Message (Offline)

Ignore
1529703227
Reply with quote  #2

1529703227
Report to moderator
The World's Betting Exchange

Bet with play money. Win real Bitcoin. 5BTC Prize Fund for World Cup 2018.

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1529703227
Hero Member
*
Offline Offline

Posts: 1529703227

View Profile Personal Message (Offline)

Ignore
1529703227
Reply with quote  #2

1529703227
Report to moderator
Jet Cash
Hero Member
*****
Offline Offline

Activity: 924
Merit: 936


Lets Talk Merit


View Profile WWW
February 27, 2018, 08:03:06 PM
 #2

preloading large images still wastes bandwidth for users on mobiles or tethered to mobiles.

Crypto Press Kit .com ++++ > What a great domain name for anyone advising bounty or ICO managers
Click here to buy it now for Bitcoin or US dollars
EcuaMobi
Legendary
*
Offline Offline

Activity: 1456
Merit: 1172


https://Ecua.Mobi


View Profile WWW
February 27, 2018, 08:25:22 PM
 #3

preloading large images still wastes bandwidth for users on mobiles or tethered to mobiles.
Indeed. There isn't any improvement regarding saving bandwidth. The target of this userscript is to improve usability instead.
If you want to save bandwidth (at the cost of the hovering not working so smoothly) just comment or remove the 2 lines below "// Preload full image"


I'll probably add a boolean constant for that purpose on the next version.

PGP: KeyBase.io/EcuaMobi [Verify / Encrypt] • 37D06E1D43EC62B874DD56868DAFD805AE6D5F7A
Bitcoin full node: node.ecua.mobiUserscripts for bitcointalk: Improved imagesShort URLs
Domains for sale: Current auctionFull list
Cluster2k
Legendary
*
Offline Offline

Activity: 1814
Merit: 1016


www.coincaps.ai


View Profile WWW
March 24, 2018, 09:07:15 PM
 #4

Nice one, going to try it out. Hating those load times of bct large images even with a 100mbps connection.


           ▄▄▄██████▄▄▄
       ▄▄███████▀▀███████▄▄
     ▄██████▀▀      ▀▀██████▄
   ▄████▀▀              ▀▀████▄
  ████        ▄▄███▄▄       ████
 ▐████      ▄█████████▄     ████▌
 █████     ████▀   ▀▀█▀     █████
 █████    ▐███              █████
 █████    ▐███▄      ▄      █████
 █████     ▀████▄▄▄████     █████
 ▐████       ▀███████▀      ████▌
  ▀███▄▄        ▀▀▀       ▄▄███▀
    ▀█████▄▄          ▄▄█████▀
      ▀███████▄▄  ▄▄███████▀
         ▀▀████████████▀▀
              ▀▀▀▀▀▀

                       ████
                       ▄▀██
                     ▄█▀   ▄▄▄▄▄
                   ▄█▀    ███████
                 ▄█▀      ███████
               ▄█▀        ███████
     ▀█▄▄    ▄█▀  ▄█████▄ ███████
        ▀▀█▄█▀    ███████ ███████
  ▄█████▄         ███████ ███████
  ███████ ▄█████▄ ███████ ███████
  ███████ ███████ ███████ ███████
  ███████ ███████ ███████ ███████
  ███████ ███████ ███████ ███████
  ███████ ███████ ███████ ███████
  ▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀ ▀▀▀▀▀▀▀
▀█████████████████████████████████▀
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!