Search results
Results from the WOW.Com Content Network
This script and CSS makes the sidebar stay in the same position on the screen as you scroll. This may have undesirable side effects in Chrome; e.g., when viewing a page like the very common.css page you just edited to put this code in, the viewable content will become much shorter, and require vertical scrolling in a frame.
This will write "Hello world!" on every page, below the title, until you remove the code. User scripts are written in JavaScript, and both of the above code snippets are in JavaScript. The second snippet uses JQuery, a JavaScript library that specializes in manipulating HTML. $ is a JQuery function that lets us target the HTML element we want.
First, make sure you are registered and logged in.Only logged-in users can install user scripts. to edit your common.js file.; Add the following line: {{subst:Lusc|script_path}} – replace "script_path" with the full name of the .js page that opens when a script's "(source)" link is clicked.
CodePen is an online community for testing and showcasing user-created HTML, CSS and JavaScript code snippets. It functions as an online code editor and open-source learning environment, where developers can create code snippets, called "pens," and test them.
A Wikipedia gadget is a JavaScript program and/or a CSS snippet that can be enabled simply by checking an option in your preferences. The gadget's function is provided by the MediaWiki extension Gadgets .
This is a list of code snippets that exist as subpages of "Wikipedia:WikiProject User Scripts", which is the previous name for the WikiProject JavaScript Many of these are still in use by live scripts, so they should not be deleted, and care should be taken in moving them. They may also provide insights for continued script development.
For users that have a lot of scripts installed, reloading them all may take up a lot of time. See Gerbrant.mng.decache and its talk page for example code on how you can let JavaScript remove arbitrary files from your browser cache using an external application.
This code will: Apply a consistent monospace font of choice to all the normally monospaced HTML elements like <code>, <pre>, etc. Fallback to system-default monospace font, should the chosen font be unavailable or lack the necessary characters. Do the same for the output of all Example-formatting templates, such as {} and {}.