FIMFiction UserScripts 383 members · 0 stories
Comments ( 14 )
  • Viewing 1 - 50 of 14
Queuefka Palazzo
Group Contributor

EDIT: Apparently this script kicked so much ass Knighty decided to make it useless by putting the popular box at the top by default. So now here's a script for putting it at the bottom for sheits and gigg0lz:

// ==UserScript==

// @author Queue

// @version 2.0

// @name Popbox Pusher

// @description Puts the popular story box at the bottom of the right column on FIMFic

// @include http://www.fimfiction.net/

// @include https://www.fimfiction.net/

// ==/UserScript==

right_Column_List=document.getElementsByClassName("list_boxes front_page_right_column");

right_Column=right_Column_List[0];

popular_Box=document.getElementById("popular_stories");

right_Column.appendChild(popular_Box);

Selbi
Group Admin

I didn't know you were doing Userscripts as well. Welcome! :pinkiehappy:

Queuefka Palazzo
Group Contributor

2316775

You seem to be much more adept at them than I am. For example, I really don't have a clue of how you did your tag hack script. Don't get me wrong, I know how to manually manipulate the tags, but I don't know how to get the onsubmit method to not catch when I try to push through more than 5 character tags. I just don't know enough about how webpages work.

Selbi
Group Admin

2316801
I do almost everything with jQuery. The tag hack's entire code is actually just this:

REMOVED

jQuery makes JS coding so much easier and faster, it's incredible. I'd highly recommend you learn it.

Queuefka Palazzo
Group Contributor

2316823

I don't understand why that doesn't trigger this when the form submits:

$("#edit_story_form").submit( function(e)
{
if ( $("#story_title").val( ) == "" )
{
alert( "Please enter a story title" );
return false;
}

if ( $("#story_description").val( ) == "" )
{
alert( "Please enter a story description" );
return false;
}

// Add up number of checked
var num_checked = 0;
$(".character_selector input:checked").each( function(e) { num_checked++; } );

if ( num_checked > 5 )
{
alert( "Maximum of 5 characters can be selected" );
return false;
}

return true;
} );

It should be preventing the form from submitting if it has more than 5 character tags. What's going on?

Selbi
Group Admin

2316883
Because the buttons are force-pressed by a tool, not the user's press on the mouse. Therefore, the preventing JavaScript doesn't notice it and lets it slip through. Just one of knighty's many terribly coded security holes.

Queuefka Palazzo
Group Contributor

2316907

That explanation seems dodgy to me because this bit of code still executes if you try to check/uncheck a character, and it counts the character tags the same way.

$(".character_selector input").change( function(e)
{
// Add up number of checked
var num_checked = 0;
$(".character_selector input:checked").each( function(e) { num_checked++; } );

if ( num_checked > 5 )
{
ShowErrorWindow( "Maximum of 5 characters can be selected" );
$( this ).attr( "checked", false );
}
} );

I stepped through the submit logic and it seems to be skipping the onsubmit method altogether.

Selbi
Group Admin

2316937
Then I don't know and it's just dumb luck due to knight'y coding. :V

Queuefka Palazzo
Group Contributor

2316978

I am so confused now.

iloveportalz0r
Group Contributor

2316801 You know you can ask me aboot this shit, reit?

Queuefka Palazzo
Group Contributor

2317160

Yes, and we've talked about it before. However, you do not appear to be on Skype reit naow.

Selbi
Group Admin

2317160
Remember the time when you weren't geil? Me neither. :ajsmug:

  • Viewing 1 - 50 of 14