User:Ivla/vector.js

// ******************************* Navigation-Popups ******************************************** // Testing changed Gadget-popups.js and translation: // mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:Ivla/popup-strings-de&action=raw&ctype=text/javascript'); // not needed here // mw.loader.load('//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-popups.js&action=raw&ctype=text/javascript'); mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:Ivla/work/js/en-Gadget-popups.js&action=raw&ctype=text/javascript'); mw.loader.load(location.protocol + '//en.wikipedia.org/w/index.php?title=MediaWiki:Gadget-navpop.css&action=raw&ctype=text/css', 'text/css');

// Options for Navigation popups // see Wikipedia:Tools/Navigation popups // popupDelay =             // default 0.5	The number of seconds before popups appear. // popupHideDelay =           // // popupModifier =          // '', 'shift', 'alt' e window.popupCookies = true;   // experimental, but working window.popupStructure = 'menus'; // window.popupShortcutKeys = true; window.popupMaxWidth = 550; // false oder Ganzzahl, Default iirc 300 window.popupExtraUserMenu = true; // var popupPreviewKillTemplates = true, false	 true, Vorlagen aus dem Vorschautext gelöscht, false= Wikitext // popupPreviewRawTemplates	true, false	Ist es true, werden Vorlagenseiten (also Seiten im Vorlagen:-Namensraum) komplett als Wikitext dargestellt, andernfalls werden sie im Preview dargestellt. window.popupPreviewFirstParOnly = false; // true: nur der erste Absatz eines Artikels in der Vorschau dargestellt. window.popupMaxPreviewSentences = 10; // eine Ganzzahl, 4	Vorschau kann auf wiedergegebene Satzanzahl begrenzt werden window.popupMaxPreviewCharacters = 1200;	// eine Ganzzahl, 600	Vorschau kann auf Zeichenzahl begrenzt werden window.popupOnlyArticleLinks = false; // Default true // window.removeTitles = false; // Default true window.popupPreviewCutHeadings = false; // experimental

// ******************************* externISBN.js ******************************************* // This code will change ISBN links to point to the url of your choice, // instead of Special:Booksources, when you are logged in. // // How to use it: // // 1.) Make sure you are logged in, so you can edit your user javascript //    page. // // 2.) Copy the contents of this page to your user javascript page. This page is //    at User: /skin.js, where is replaced by //     your user name. For example, my user name is Lunchboxhero so my javascript //    page is User:Lunchboxhero/skin.js. // //    (Every line that starts with "//" is a comment is not necessary for the code //     to work and can be discarded.) // // 3.) If you want to change the destination URL from amazon.com to another book //    source, you can do so by changing the value of the book_source_URL.  Go to //     Book sources and copy the URL of the book source you want to //     use (right-click or ctrl-click the link, then click "Copy Link Location", //    "Copy Target", or similar).  Put the new URL between the quotes next //     to book_source_URL, in place of the URL now there. // // 4.) Once satisfied with the destination url, and your javascript page saved, you //    may have to refresh your browser cache in order for the code to be loaded. //    //     For Mozilla/Safari/Konqueror: hold down Shift while clicking Reload (or //     press Ctrl-Shift-R), IE: press Ctrl-F5, Opera: press F5. // // The code should now work, as long as you are logged in. // // Good luck, and if you have any questions, leave a comment on the discussion // page of User:Lunchboxhero/skin.js. Thanks to Superm401 and drrngravy for their // improvements.

// changed to my settings. ivla // var book_source_URL = "http://www.amazon.com/gp/s?search-alias=stripbooks&field-isbn=MAGICNUMBER"; // importScript('User:Ivla/externISBN.js');