Quantcast

Jump to content


Photo

Ghetto++: Quick Shop Wizard + Trading Post Linkz


  • Please log in to reply
3 replies to this topic

#1 kuwaz

kuwaz
  • 1181 posts

Posted 23 January 2014 - 07:01 PM

Ghetto++

 

So this is my 3-minute-effort "script" for adding a bunch of super ghetto links to your neo shop...

I made this cuz I got so tired of copying and pasting shit to looking on shop wiz and trading post,

and at the same time didnt care enough to make it properly.

 

How safe is it? NO IDEA. USE AT YOUR OWN RISK!!!

But I'm assuming if you dont spam click links its at the same risk rate of refresher

 

This is a bit of a DIY, so that you can see for yourself this aint some phising script.
Only tested in chrome tempermonkey, probably same thing in greasemonkey obviously.

 

1. Install tempermonkey:

https://chrome.googl...ejmpbldmpobfkfo

 

2. Go get jQuery and copy the source

http://code.jquery.c...y-1.10.2.min.js

 

3. Make a new script in tempermonkey

4. Paste in this crap below into your new script

// ==UserScript==
// @name       Neopets
// @namespace  http://www.neopets.com/
// @version    1.000
// @description  Neopets Usershop Wizard?
// @[member="match"]      http://www.neopets.com/market.phtml*
// @copyright  2013
// ==/UserScript==

/////////// PASTE JQUERY HERE /////////

/* OOOOO */
$(document).ready
(
	function()
	{
		var $rows =
		$("form[action='process_market.phtml'] > table tr") ;

		$rows.each(function()
		{
			var $this = $( this ) ;
			var $cell = $this.find( "td:first" ) ;
			var htmls = $cell.html() ;
			var texts = $cell.text() ;

			if( !htmls.match( "input" ) )
			{
				$cell
				.append
				(
					"<br/>" +
					"<a class='wizardz' href='#' >Wizardz</a><br/>" +
					"<a class='tradez' href='#' >Tradez</a><br/>"

				)
				.on
				(
					"click",".wizardz",function()
					{
						var form =
						"<form id='Wizardz' " +
							"method='POST' " +
							"action='//www.neopets.com/market.phtml' " +
							"style='display:none;' " +
							"target='_blank' >" +
							"<input name='table' value='shop' />" +
							"<input name='type' value='process_wizard' />" +
							"<input name='shopwizard' value='"+texts+"' />" +
							"<input name='feedset' value='0' />" +
							"<input name='criteria' value='exact' />" +
							"<input name='min_price' value='0' />" +
							"<input name='max_price' value='99999' />" +
						"</form>" ;

						$( "#Wizardz" ).remove()
						$( "body" ).append( form ) ;
						$( "#Wizardz" ).submit() ;
						return false ;

					}

				)
				.on
				(
					"click",".tradez",function()
					{
						var form =
						"<form id='Tradez' " +
							"method='POST' " +
							"action='//www.neopets.com/island/tradingpost.phtml?type=browse' " +
							"style='display:none;' " +
							"target='_blank' >" +
							"<input name='search_string' value='"+texts+"' />" +
							"<input name='criteria' value='item_exact' />" +
							"<input name='sort_by' value='newest' />" +
						"</form>" ;

						$( "#Tradez" ).remove()
						$( "body" ).append( form ) ;
						$( "#Tradez" ).submit() ;
						return false ;

					}

				) ;

			}

		}) ;

	}

) ;




5. Replacing

 

/////////// PASTE JQUERY HERE /////////

 

With that jQuery 1.10 you just copied

 

6. Save it and it'll run on market.phtml*

7. Now you should have a bunch of random links beside every item in your shop, clicking it just submits a form to the appropriate linkz

8. Enjoy my shitty 3 minute code

 


Edited by channel_49, 23 January 2014 - 07:01 PM.


#2 Faintingcow

Faintingcow
  • Uncle Fancypants

  • 199 posts


Users Awards

Posted 23 January 2014 - 08:05 PM

Pic of what it does?



#3 Florg

Florg
  • 711 posts


Users Awards

Posted 24 January 2014 - 07:59 AM

I'll have to try this out when I get home :p

 

I believe there is already a userscript (userscripts.org) that does something similar for items in your inventory, shop, quest pages, etc. but it doesn't work for Chrome, only FF. But hey, the more the merrier!

 

Would be awesome if it worked with the SSW.



#4 kuwaz

kuwaz
  • 1181 posts

Posted 25 January 2014 - 11:07 AM

Dont have SSW account to make it work on. Can make it if someone lends me a SSW account to test on.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users