User:Puppy/monobook.js

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

Note: After saving, you have to bypass your browser's cache to see the changes.

  • Internet Explorer: hold down the Ctrl key and click the Refresh or Reload button, or press Ctrl+F5.
  • Firefox: hold down the Shift key while clicking Reload; alternatively press Ctrl+F5 or Ctrl-Shift-R.
  • Opera, Konqueror and Safari users can just click the Reload button.
  • Chrome: press Ctrl+F5 or Shift+F5
addOnloadHook( function(){
if ( unescape( document.location.href ).indexOf( "Special:ImportFreeImages" ) > -1 ) {
	$( "<p style='margin-top:40px'>Or, paste a URL from Flickr to import:</p><form id='importflickr'><input id='pastie' size='40'/><input id='import' value='Import' type='submit' /></form>" ).insertAfter( document.forms[ 0 ] );
	$( "#importflickr" ).bind( "submit", function() {
		var url = $( "#pastie" ).val(), id = url.match( /\/\d+\// );
		if ( id && url.indexOf( "flickr.com" ) > -1 )
			document.location.href = "http://uncyclopedia.wikia.com/wiki/Special:Upload?wpSourceType=IFI&wpFlickrId=" + id[ 0 ].replace( /\//g, "" );
		else
			alert( "Hmm, that URL doesn't seem to contain a valid Flickr ID" )
		return false;
		})
	}
})

importScript( "User:Bizzeebeever/scripts/patrol.js" );
importScript( "User:Bizzeebeever/scripts/sharing.js" );
importStylesheet( "User:Bizzeebeever/styles/sharing.css" );