Safari Code Un-Scroller Script, Scrips, Java, DHTML, Express
Contact
 


Quick search

 



Scripts - DHTML

Scripts - DHTML (new)

Web Developer Blog

Web Developer Blog (new)

Scripts and Applications

Ajax
ASP
ASP.NET
C and C++
CFML
CGI and Perl
Flash
Java
JavaScript
PHP
Python
XML

Software Downloads

Linux

Windows

Mac

Mobile

Drivers

DHTML Scripts - Detail

 

Safari Code Un-Scroller

Date added: 2007-05-25 18:38:48

Un-scrolls code samples in the Oreilly (or Informit, or other) Safary Books texts - now you can see the whole code sample without vertical scrollbar, as opposite to seeing the code sample in the short box of 20-something lines in height with a vertical scrollbar.

Safari Books Code Un-Scroller - more info

Safari Books made ...ugh... strange (not to say anything worse) decision to show a sample code in books in boxes of 20-something lines high with a vertical scrollbar. The longer code sample is, the less of the code you can see at once.

If you are reading something in the text of the page and want to see the piece or the code sample you are interested in, you need (in the worst case) to drag the page's scroll bar until you see a code sample box, move the mouse to the code sample box scrollbar, drag it up/down to find a piece of code you want to see. Then, to return to the place you were reading in the book, you need to move the mouse back to the scrollbar of the page and drag it to return back. Those switchings of mouse from one scrollbar to another are SO annoying, that I decided to spend several hours to learn how to write GreaseMonkey scripts.

Here is the result. This script removes from the code samples the CSS style that makes the code samples to be shown in the short scrolled box - now the code samples are shown in full, without any scrollbars, and I can keep mouse pointer on the scrollbar of the page itself and drag it up or down to switch from the place I'm reading in the book text to the place in the code sample that illustrates this text, and back. Safari Books Nirvana!

Note that if you are using a Safary Books provider other then Informit or Oreilly, you will have to specify your URL in the Included Pages of the GreaseMonkey's Manage User Scripts window. Also, I would ask you to post here, in comments, your Safari Books URL, so that eventually I could add it to the script.

Update Looks like it was not enough to addEventListener on the 'load' event. But adding listener on the 'DOMNodeInserted' event works OK - may be this is not the most efficient way, but it works.

Download

(Downloads till now: 12)


Can't start the download? Please check if the browser is not blocking the pop-up window that allows you to start the download.

Still not working? Please report to us, thanks for your time.

  

 

Leave a comment




(optional)

What is 7-3?




0 comments


 

Related DHTML Scripts

Textarea Backup
Date Added: 2007-05-25
Retains text entered into textareas. The primary purpose of this userscript is to save having to retype lost emails, forum posts, bug submissions, etc. The backup should be transparent so if the page...
GM_BRAMUS.in.spire.us
Date Added: 2007-05-26
A script to add thumbnails previews to the links posted on del.icio.usThis script adds thumbnail previews to the links in your delicious bookmarks. Just hover the link to see the preview. For mor...
Disable Text Ads
Date Added: 2007-05-26
Disables inline contextual text ads from IntelliTXT, Kontera, Linkworth and EchoTopic. Version 5.0, updated 03/20/07.This script does exactly what it says - it hides contextual ads within a page so y...
YouTube Video Original Page
Date Added: 2007-05-26
YouTube Video Original Page UserScript will insert a link to the original page of a YouTube video from a page which has an embedded YouTube Video.YouTube Video Original Page UserScript There are ma...
Chefkoch.de always show menu
Date Added: 2007-05-26
Always show the dropdown navigation menu from chefkoch.de on the right side of the page.I love the "random recipe" function, but the darn mouseover action really does get in the way. This script displ...
GoogleTagCloudMaker
Date Added: 2007-05-26
Make Tag Cloud from Google search result.This usr script enables you to find relative word of your search query!! So when you don't know about the word you search , the script helps you to seek...
Neopets - High Scores Counter
Date Added: 2007-05-27
Counts up all the different rankings. Click the [X] to highlight all the games of that ranking. Links the username to their lookup.Version 1.1 Added links from the base myscores page. Tooltips for...
Friendster Testimonial & Comment - Auto Signature
Date Added: 2007-05-27
This script will be add signature when filling up Testimonial or Comment on Friendster. Modified script from MySpace - Auto Signature (http://userscripts.org/scripts/show/8004)....
Emots to text
Date Added: 2007-05-27
Converts graphical emoticons to text. Works on phpBB forumsThis script has all the standard phpBB emoticons + two sets from specific forums so you can see how to modify the code, so it will convert ex...
edit page
Date Added: 2007-05-27
made by loudsur i just made the text biggersdf...
Torrentspy Cleaner Delux
Date Added: 2007-05-27
Cleans up Torrentspy.com by removing extraneous visual elements widens search results and add google style did you mean to search updated 17-marchupdated-19-March-2007 removes t-shirt link and filter...
Reddit - open comments and article in new tabs
Date Added: 2007-05-28
Adds a new button to each article that opens the comments and article in new tabs.This script is configurable. Go to the line that says var mode = 0;. This variable can have three values: 0: always ...
MeFi Navigator
Date Added: 2007-05-28
Navigate users' comments in Metafilter threads. Highlights posters and admins.New Version! (19 March 2007) This is a new improved version. Performance has improved hugely (at least 10x faster no...
Reddit - remove redirect
Date Added: 2007-05-28
Removes the irritating redirect on reddit pages...
Apple Trailer Download
Date Added: 2007-05-28
Download the full movie trailers from apple.com with this userscript.Version 2.0 (02/2007) I completely rewrote the script. Major changes:A fixed-positioned box containing the links to the movies is...

Last 20 Scripts

 
1. Cookie Crumbs
Cookie Crumbs JavaScript creates a breadcrumb type trail of
2. Loupe.js
Loupe.js script allows you to add a loupe (magnifier) to ima
3. Reflex.js
Reflex.js script allows you to add a Cover Flow™ like effect
4. Edge.js
Edge.js Javascript adds individual masks to images on web pa
5. Curl.js
Curl.js is a simple to install and use JavaScript that adds
6. Busy.js
Busy.js script permits you to add/remove loading indicators
7. Mapper.js
Mapper.js automatically ads an area highlighting to image ma
8. Filmed.js
Filmed.js script allows you to add film strip and shadows to
9. Slided.js
Slided.js script adds slide frames and shadows to images on
10. Shiftzoom.js
Shiftzoom.js script permits you to add pan and zoom function
11. Instant.js
Instant.js script allows you to add an instant picture effec
12. Glossy.js
Glossy.js script allows you to add corners, shading and shad
13. Corner.js
Corner.js script helps you to create custom corners to image
14. Sphere.js
Sphere.js script allows you to add a spherical picture effec
15. Bevel.js
Bevel.js script allows you to add bevels (and also shading,
16. jQuery Lightbox Plugin
jQuery Lightbox Plugin provides a way to display an image on
17. jQuery Tag Suggestion Plugin
jQuery Tag Suggestion plugin helps you create a subset of ta
18. jClock
jClock is a jQuery clock plugin that allows you to display c
19. jqac
jqac is a jQuery plugin that extends jQuery namespace with a
20. YUI Based Lightbox
YUI Based Lightbox is a lightweight implementation of a ligh

DownloadTube Editor Reviews

 
1. NetShareWatcher
NetShareWatcher is a smart network security improvement soft...
2. Recovery for Oracle
Recovery for Oracle is a comprehensive tool designed to help...
3. Fix My Registry
The Windows Registry is a crucial part of your PC\'s operati...
4. VeryDOC DWG to Image Converter
VeryDOC DWG to Image Converter is a powerful utility that al...
5. Free AVI to M4A Converter
Doremisoft Free AVI to M4A Converter is an easy-to-use media...
6. Replay Media Splitter
Replay Media Splitter is a really simple and easy to use aud...
7. Instant Invoice n Cashbook 2007
Instant Invoice n Cashbook 2007 is a smart and powerful invo...
8. Data Doctor Recovery Digital Camera
Data Doctor Recovery Digital Camera is a Point and Shoot cam...
9. Free AVI to MPG Converter
Doremisoft Free AVI to MPG Converter is an easiy-to-use medi...
10. 1st Disk Drive Protector
Protect your PC from the abusive use of removable media with...

Software Reviews Full List



Top Downloads

 
1. Canon PIXMA iP1000 Printer Driver
2. Canon PIXMA iP1200 Printer Driver
3. Realtek ALC/ 262/ 265/ 268/ 660/ 861/ 880/ 882/ 883/ 885/ 888 Audio
4. Realtek RTL8139C(L)+/RTL8139D(L)/RTL8100(L)/RTL8130/RTL8139B(L) Driver
5. Canon PIXMA MP210 MP Drivers
6. Asus EZVcr II
7. Canon PIXMA iP1300 Printer Driver c
8. Genius Eye 110 Webcam Driver
9. Canon i-SENSYS LBP2900 Printer Driver R
10. dmg2iso
11. Canon LaserShot LBP-1210 Printer Driver
12. Canon PIXMA iP1600 Printer Driver
13. Canon PIXMA MP160 MP Drivers xp64
14. Canon PIXMA iP1200 Printer Driver x64 d
15. Canon PIXMA MP220 MP Drivers
16. Canon PIXMA iP1300 Printer Driver a
17. Canon PIXMA MP160 MP Drivers 9xME
18. SendSong
19. BSD Subsystem
20. Sierra Wireless Watcher