Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Tips, Tricks & Tweaks
Forums FAQ Members List Search Today's Posts Mark Forums Read

ARCHIVES - Tips, Tricks & Tweaks Tips and Solutions for SUSE Linux
(Please do not post questions here)

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 21-Feb-2008, 10:35
ice_60
Guest
 
Posts: n/a
Default

i'm just going to copy and paste this from some other posts i've made.

automatically resize youtube videos



it's a userjs hack and this is where i found it -
http://userstyles.org/styles/3180
http://userstyles.org/styles/userjs/3180/Y...Resizer.user.js

incase the link disappears this is the code -

Code:
// ==UserScript==
// @name**********Youtube Video Resizer
// @namespace**** http://userstyles.org
// @description******Resizes the video player in Youtube to fill up more space, and moves the sidebar underneath.**Thanks to Diddle for helping fix the bugs.
// @author********steppres
// @homepage******http://userstyles.org/styles/3180
// @include****** http://youtube.com/*
// @include****** https://youtube.com/*
// @include****** http://*.youtube.com/*
// @include****** https://*.youtube.com/*
// ==/UserScript==
var css = "@namespace url(http://www.w3.org/1999/xhtml); #baseDiv { width: 874px !important; } #movie_player {width: 874px !important; height: 688px !important;} #aboutExploreDiv, #dVidsDiv, #otherVidsCell {padding-top: 700px !important;} #leaderboardAd {display: none !important;}";
if (typeof GM_addStyle != "undefined") {
****GM_addStyle(css);
} else if (typeof addStyle != "undefined") {
****addStyle(css);
} else {
****var heads = document.getElementsByTagName("head");
****if (heads.length > 0) {
********var node = document.createElement("style");
********node.type = "text/css";
********node.appendChild(document.createTextNode(css));
********heads[0].appendChild(node); 
****}
}
this is how to install userjs scripts (just make a folder to put the scripts in then show opera where it is) -
http://userjs.org/help/installation

CustomizeGoogle for Opera
http://www.smir.de/cg/

i just got this. i like it, it does lots of stuff -

Use Google Suggest (suggest words while you're typing)
Add links to competitors
Rewrite links to point straight to the images in Google Images
Removes image copying restrictions in Google Book Search
Secure Gmail and Google Calendar, switch to https
Block Google Analytics cookies
Hide the Gmail spam counter
Remove ads
Anonymize your Google userid
Add a result counter in search result
Filter spammy websites from search results
Add links to WayBack Machine (webpage history)
Remove click tracking
Use a fixed font for Gmail mail bodies

i've already got some of those things, but i like the extra links it adds to the google search results. it doesn't work with the search engine i was using, but it anonymises the google cookie id so i can use google now anyway.

video download bookmarklet
my old video download bookmarklet stopped working, it might be when google changed the format, this one works though for lots of sites -
http://1024k.de/bookmarklets/video-bookmarklets.html

where it says All-In-One Video Bookmarklet, at the link, drag it straight up to your toolbar, then click on it when you want to save a video!

Go Button
i added the first go button on this page to the right of my address box. i know most people don't like go buttons but i'd use it sometimes.
http://homepage.hispeed.ch/ttt-opera/butto...rowser-adv.html

bookmarklets
to use a bookmarklet drag it straight up to the toolbar from the page.
i use one of the Toggle Toolbars buttons where the heart is on my toolbar, it's the one called Personal. i've got a menu one too, but i don't think it's from that page, my one toggles the menu's toolbar on and off and has all the menu options when it's toggled off.
http://www.aimwell.org/Help/Buttons/buttons.html

i've got lots of bookmarklets like these two on my toolbar -

here's a search the domain i'm on -


a dictionary.com one. either highlight a word and click it, then it goes staright to dictionary.com for the highlighted word, or without highlighting a word you get this popup so you can enter a word -




writing web pages
here's an easy way to check web pages you write -

1, goto Tools>Preferences>Advanced>Programs>Choose application for viewing source>Edit and check it's using opera.

2, open a new tab and go to about:blank

3, right-click on the page and select source

4, right-click on the new tab (make sure it's literally the tab where you right-click) that opened up with the source in and select detach

5, start writing your web page, then to see how it looks just click apply changes and you'll see it straight away. it's much easier and quicker then saving what you've done in a text file then reloading the browser.



forum smilies
i added this code, below, to my menu.ini (~/.opera/menu/menu.ini i think that's the default name, you might have to check), just above where it says "[Hotclick Popup Menu]". it adds lots of vBulletin stuff, so i can select, smilies, fonts, Bold, italic, size, colour and loads more, really, really easily and quickly!

backup your menu.ini first -
Code:
cp ~/.opera/menu/menu.ini ~/.opera/menu/menu.ini.my_backup


Code:
[Edit Widget Popup Menu]
Submenu, "vB Code", vBcode Menu=Show popup menu, "vBcode menu",,,"Smiley Happy"
---Notes---
Include, Internal Personal Information
Include, Internal Note List

---Undo---
Item, 50864=Undo
Item, 68116=Redo
---Edit---
Item, 67655=Clear
Item, 50865=Cut
Item, 50866=Copy
Item, 50867=Paste
Item, 50868=Delete
---Select---
Item, 50869=Select all
---Spell---
Item, "Spell check"=Spell check
Item, "Wordweb"=Copy,,,,"Wordweb" & Execute program, "Rundll32.exe", "wweb32.dll,ShowRunDLL"

[vBcode Menu]
Submenu, "Format", Format menu
Submenu, "Size", Size menu
Submenu, "Font", Font menu
Submenu, "Colour", Colour menu
Submenu, "Codes", Codes menu
Submenu, "Lists", Lists menu
Submenu, "Smile&ys", Smileys menu

[Format menu]
Item, "Bold"=Cut & Insert, "" & Paste & Insert, ""
Item, "Italic"=Cut & Insert, "" & Paste & Insert, ""
Item, "Underline"=Cut & Insert, "" & Paste & Insert, ""
Item, "Strikeout"=Cut & Insert, "[STRIKE]" & Paste & Insert, "[/STRIKE]"
---Headings---
Item, "Heading Large"= Cut & Insert, "" & Paste & Insert, ""
Item, "Heading Medium"= Cut & Insert, "" & Paste & Insert, ""
Item, "Heading Small"= Cut & Insert, "" & Paste & Insert, ""
---Paragraph---
Item, "Align Centre"=Cut & Insert, "[ALIGN=center]" & Paste & Insert, "[/Align]"
Item, "Centre"=Cut & Insert, "
" & Paste & Insert, "
"
Item, "Right"=Cut & Insert, "
" & Paste & Insert, "
"


[Size menu]
Item, "-1"=Cut & Insert, "" & Paste & Insert, ""
Item, "+1"=Cut & Insert, "" & Paste & Insert, ""
Item, "+2"=Cut & Insert, "" & Paste & Insert, ""
Item, "+3"=Cut & Insert, "" & Paste & Insert, ""
Item, "+4"=Cut & Insert, "" & Paste & Insert, ""
Item, "+5"=Cut & Insert, "" & Paste & Insert, ""
Item, "+6"=Cut & Insert, "" & Paste & Insert, ""

[Font menu]
Item, "&Arial"=Cut & Insert, "" & Paste & Insert, ""
Item, "&Book Antiqua"=Cut & Insert, "" & Paste & Insert, ""
Item, "Comic &Sans MS"=Cut & Insert, "" & Paste & Insert, ""
Item, "&Courier"=Cut & Insert, "" & Paste & Insert, ""
Item, "&Georgia"=Cut & Insert, "" & Paste & Insert, ""
Item, "&Lucida Handwriting"=Cut & Insert, "" & Paste & Insert, ""
Item, "&News Gothic MT"=Cut & Insert, "" & Paste & Insert, ""
Item, "&Palace Script MT"=Cut & Insert, "" & Paste & Insert, ""
Item, "&Times"=Cut & Insert, "" & Paste & Insert, ""

[Colour menu]
Item, "Aquamarine"=Cut & Insert, "" & Paste & Insert, ""
Item, "Blue"=Cut & Insert, "" & Paste & Insert, ""
Item, "Crimson"=Cut & Insert, "" & Paste & Insert, ""
Item, "Darkblue"=Cut & Insert, "" & Paste & Insert, ""
Item, "Firebrick"=Cut & Insert, "" & Paste & Insert, ""
Item, "Gold"=Cut & Insert, "" & Paste & Insert, ""
Item, "Ivory"=Cut & Insert, "" & Paste & Insert, ""
Item, "Khaki"=Cut & Insert, "" & Paste & Insert, ""
Item, "Limegreen"=Cut & Insert, "" & Paste & Insert, ""
Item, "Magenta"=Cut & Insert, "" & Paste & Insert, ""
Item, "Navy"=Cut & Insert, "" & Paste & Insert, ""
Item, "Orange"=Cut & Insert, "" & Paste & Insert, ""
Item, "Pink"=Cut & Insert, "" & Paste & Insert, ""
Item, "Red"=Cut & Insert, "" & Paste & Insert, ""
Item, "Sienna"=Cut & Insert, "" & Paste & Insert, ""
Item, "Turquoise"=Cut & Insert, "" & Paste & Insert, ""
Item, "Violet"=Cut & Insert, "" & Paste & Insert, ""
Item, "White"=Cut & Insert, "" & Paste & Insert, ""
Item, "Yellow"=Cut & Insert, "" & Paste & Insert, ""
Item, "Full List"=Go to page, "http://my.opera.com/forums/showthread.php?s=&threadid=40520&highlight=colours#post414603"

[Codes menu]
Item, "Code"=Cut & Insert, "

****
Code:

****
" & Paste & Insert, "
"
Item, "Button"=Cut & Insert, "[Opbut=" & Paste & Insert, "]Button[/opbut]"
Item, "Email"=Cut & Insert, "Email me"
Item, "Image"=Cut & Insert, "[Img]" & Paste & Insert, "[/img]"
Item, "Link"=Cut & Insert, "[LINK Text]" & Paste & Insert, "[/link]"
Item, "PhP Code"=Cut & Insert, "
PHP Code:
" & Paste & Insert, " 
" Item, "Quote"=Cut & Insert, " **** Quote: **** ************ ****************" & Paste & Insert, " ************ ******** " Item, "URL"=Cut & Insert, "Text"[Lists Menu] Item, "List Item"=Insert, "[*]" Item, "Bulleted List"=Cut & Insert, "[list][*]" & Paste Item, "Alphabetical List"=Cut & Insert, "[list=A][*]" & Paste Item, "Numbered List"=Cut & Insert, " " & Paste Item, "End List"=Insert, " " [Smileys Menu] Item, "Angry"=Insert, " >:( ",,,"Smiley Angry" Item, "Cool"=Insert, " 8) ",,,"Smiley Cool" Item, "Cry"=Insert, " :'( ",,,"Smiley Cry" Item, "Grin"=Insert, ";D ",,,"Smiley Grin" Item, "Happy"=Insert, " :) ",,,"Smiley Happy" Item, "Indifferent"=Insert, " :| ",,,"Smiley Indifferent" Item, "Pacman"=Insert, " :< ",,,"Smiley Pacman" Item, "Surprised"=Insert, " :o ",,,"Smiley Surprised" Item, "Tongue"=Insert, " :P ",,,"Smiley Tongue" Item, "Unhappy"=Insert, " :( ",,,"Smiley UnHappy" Item, "Wink"=Insert, ";) ",,,"Smiley Wink" ---Serif Smileys--- Item, "Problem"=Insert, " :problem: " Item, "Solution"=Insert, " :solution: " Item, "Tip"=Insert, " :tip: " Item, "Idea"=Insert, " :idea: "
i just tried it out and it works perfectly. i got it from here, where it says 7. VBulletin Code Menu -
http://www.aimwell.org/Help/Tips/tips.html
 

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2