TW Greasemonkey Scripts by -Bane - TribalWar Forums
Click Here to find great hosting deals from Branzone.com


Go Back   TribalWar Forums > TribalWar Community > Policy Updates & Announcements
Reload this Page TW Greasemonkey Scripts
Page 1 of 4
Thread Tools
-Bane
VeteranX
Old
1 - 02-17-2008, 04:29 AM
Reply With Quote
Tribalwar Image Embedder v1.1c - click on an image link and have it display in TW instead of in a new tab / window (for the truly adventurous / lazy, turn on auto-viewing). Resizes to fit in post tables (optional, on by default).

Testing on website which prevents hotlinking: A picture

Testing on an image generated by a server side script: PHP image

Testing on an image which returns a bad image to prevent hotlinking: Tripod image

To configure: Tools -> Greasemonkey -> User Script Commands

UPDATE: v1.1c
- If an image fails to load, the link still remains and an error message is indicated (if, for instance, the host website forbids hotlinking).
Example

UPDATE: v1.1b
- Added feature: Option to turn off smart resizing of images.
- Changed config options to be preceded by "TW Embedder:"

UPDATE: v1.1a
- Bug fix: Images with links attached were getting "clicked" -- most prominent if you went to reply to a thread (the 5 smilies on the right were automatically "clicked" and added to the post). For a kick, click "more smilies" with an older version installed to get all smilies in your post.

UPDATE: v1.1
- Images now scale dynamically as you resize the window.
- cneal's massive images on page 3 are now resized once they are properly loaded.

========================
FAQ:
Quote:
Originally Posted by gRraWr View Post
does this work for links when you have show images turned off?
Yes. In fact, if you turn on the "embed images automatically" (instead of "embed images on click") it's as if you never had "show images" turned off.

Quote:
Originally Posted by meatcycle View Post
How do we know what version we're running?
Tools -> Greasemonkey -> Manage User Scripts...

Click on "Tribalwar Image Embedder" -- in the description at the top right it should have the version (ex: "v1.1a")


========================
Original post:


ok, so my previous attempt didn't take off since no one uses NWS tags. So I came up with this script which I now can't live without:

- Click on linked image embeds the image instead of linking to a new page (or use prefs to do it automatically).
- If an image breaks the post table, it's resized to fit inside it*. (This goes for ALL images, including non-linked ones. Never again will an image break the post table).
- Clicking on image zooms in / out if it was resized.

Here's the script. Again, requires greasemonkey and firefox.

Demonstration: That ass (page 185) - for an even better experience, Tools -> Greasemonkey -> User script commands... -> Embed images automatically.
Resizing example: [Game] Guess this picture!

* Resizing works as long as there's at least one post in the thread that DOESN'T break the post tables.
 
-Bane is offline
 
Last edited by -Bane; 07-21-2013 at 04:38 PM. Reason: Testing purposes
Sponsored Links
frozen-rain
VeteranX
Contributor
Old
2 - 02-17-2008, 04:30 AM
Reply With Quote
anyone call you a nerd yet LOL sorry bro, its true
 
frozen-rain is offline
 
Azn_Essence
VeteranX
Old
3 - 02-17-2008, 04:30 AM
Reply With Quote
bump for tommorow, when its not 430 am
 
Azn_Essence is offline
 
-Bane
VeteranX
Old
4 - 02-17-2008, 04:33 AM
Reply With Quote
Quote:
Originally Posted by frozen-rain View Post
anyone call you a nerd yet LOL sorry bro, its true
Nope you're the first.
 
-Bane is offline
 
frozen-rain
VeteranX
Contributor
Old
5 - 02-17-2008, 04:34 AM
Reply With Quote
aww mang
 
frozen-rain is offline
 
WarBuddha
VeteranXV
Contributor
Old
6 - 02-17-2008, 05:50 AM
Reply With Quote
say wha
 
WarBuddha is offline
 
GiftOfTheGame
VeteranXV
Old
7 - 02-17-2008, 06:01 AM
Reply With Quote
works well so far, danke
 
GiftOfTheGame is offline
 
scandal
VeteranXV
Old
8 - 02-17-2008, 06:03 AM
Reply With Quote
that's a neat script. Will it work with website that do not generally allow hotlinking?
 
scandal is offline
 
HariKari
VeteranX
Old
9 - 02-17-2008, 06:40 AM
Reply With Quote
I've been using greased lightbox for linked pics
Greased Lightbox, enhance browsing on websites that link to images - Shifting Pixel, Pictures, Photos, and Photography

resizing sounds nice though
 
HariKari is offline
 
-Bane
VeteranX
Old
10 - 02-17-2008, 07:04 AM
Reply With Quote
Quote:
Originally Posted by scandal View Post
that's a neat script. Will it work with website that do not generally allow hotlinking?
It should. The only "TW-specific" code is one which optimizes resizing against the post tables -- if it can't find the TW post tables, it falls back to the size of the window as the max image width.

Quote:
Originally Posted by GiftOfTheGame View Post
works well so far, danke
Bitte schön
 
-Bane is offline
 
TseTse
VeteranX
Old
11 - 02-17-2008, 07:28 AM
Reply With Quote
cliffs
 
TseTse is offline
 
Sircle
The Man ShowX
Contributor
Old
12 - 02-17-2008, 10:35 AM
Reply With Quote
Quote:
Originally Posted by TseTse View Post
cliffs
 
Sircle is offline
 
VGX
VeteranXV
Old
13 - 02-17-2008, 11:12 AM
Reply With Quote
 
VGX is offline
 
Catti-brie
VeteranX
Old
14 - 02-17-2008, 11:47 AM
Reply With Quote
Nice.
 
Catti-brie is offline
 
GreyGhost
VeteranXV
Contributor
Old
15 - 02-17-2008, 12:00 PM
Reply With Quote
thanks, GM says to table breaking dicks now
 
GreyGhost is offline
 
kloa
VeteranX
Old
16 - 02-17-2008, 12:05 PM
Reply With Quote
hawt, thanks
 
kloa is offline
 
Tribalbob
VeteranXV
Contributor
Old
17 - 02-17-2008, 12:05 PM
Reply With Quote
<3 i'm too lazy to install it, but I like what you've described and thank you for the work and effort you've put into something i'd use if i weren't so lazy.
 
Tribalbob is offline
 
Scurvy With Fries
VeteranX
Old
18 - 02-17-2008, 12:07 PM
Reply With Quote
thats cool
 
Scurvy With Fries is offline
 
GreyGhost
VeteranXV
Contributor
Old
19 - 02-17-2008, 12:07 PM
Reply With Quote
the minute and a half it took was tiring, but I had an energy bar and forced myself to do it
 
GreyGhost is offline
 
Dark_Moon
VeteranX
Old
20 - 02-17-2008, 12:07 PM
Reply With Quote
beautiful

thank you
 
Dark_Moon is offline
 
Page 1 of 4
Reply


Go Back   TribalWar Forums > TribalWar Community > Policy Updates & Announcements
Reload this Page TW Greasemonkey Scripts

Social Website Bullshit

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

AGENT: CCBot/2.0 (http://commoncrawl.org/faq/) / Y
All times are GMT -5. The time now is 10:16 AM.