Jump to content

Makaze's Script Shop [REQUESTS OPEN]


Makaze
 Share

Recommended Posts

**Scroll to the bottom of this post for info on how to request a new code.**

Welcome to my scripts thread. Here you will find codes that add to or change features on Serenes Forest as well as other sites.

Refer to the second post if you do not know how to install userscripts and/or styles.

JavaScript Codes

Meta Scripts

Makaze Scripts Options Menu 1.0.5

Forum Scripts

Automatic Notifications 1.0.0
Change 'Favorite Fire Emblem' to 'Favorite FE' in Miniprofiles 1.0.2
Custom Avatars 2.0.0 // requested by Kon
Forum Cleanup 2.0.0 // requested by James Bond
Hide 'Favourite Fire Emblem Game' in Miniprofiles 1.0.0
Hide Gender in Miniprofiles 1.0.2
Hide Ignored Post Notices 1.0.0. Deprecated .// Use True Ignore instead
Hide the 'Edit Post' Button in Mafia Subforum 1.0.2
Isolate Posts by User 1.1.0 // requested by Euklyd
Lockpick Quotes 1.0.1
Member Nicknames 2.0.0
Navigation Shortcuts 2.0.4
Plaintext BBCode 5.0.4 // requested by Marthur
Post Auto-Saving + Management 4.0.0 // requested by Euklyd and Sanagami
Post Loss Prevention 1.0.6
Post Style 1.0.5
Prevent Video Preload 2.0.0 // requested by Euklyd
Quote Search Results 1.0.0. New! .
Thread Extractor 1.0.0 // requested by Elieson. New! .
Rich Post Templates 1.0.2. New! 
True Ignore 2.0.0 // requested by Shirley. New! 

IP.Chat Scripts

Auto-Resizing Popup 1.0 // requested by Saethori
Convert Smilies to Text 1.0 // requested by Blyvern
dice_consise Dice Bot 0.1.9
History Extension + Concise Formatting 1.2.4
IP.Chat Ignore 1.2.0 // requested by Umiko
IP.Chat Kick Notice 1.1.1
IP.Chat Logs 1.4.0 // requested by Euklyd
Nickname Users 1.0.1 // requested by Blyvern
IP.Chat Pings + Highlights 2.4.1 // requested by NutOfDeath and Euklyd
IP.Chat-Specific Theme 1.1.3 // requested by BlueWyvern4

Standalone Resources (No install required)

BBCode Post Editor
Fire Emblem Stat Averager

Stylish (CSS) Codes

Fixed Size Smilies (for IP.Chat)
Increase Height of IP.Chat Window (600px)
Minimalist Quotes
Remove Borders and Dropshadows on Avatars

Midnight Forest [THEME]. New! 

Requests

Please post your requests in this thread.

Request form:

[size=6][b][i]Code Request[/i][/b][/size][b]Description:[/b] {What the code does}[b]Features:[/b] {Details about what it does}[b]Style:[/b] {Preferred visual style (if any)}
Edited by Makaze
Link to comment
Share on other sites

  • Replies 284
  • Created
  • Last Reply

Top Posters In This Topic

JavaScript Installation

Firefox

1. Install Greasemonkey.

2. Click the. Raw .button on the script page. Confirm the installation when prompted.

3. Visit an IP.Board forum.

Chrome

If you use Tampermonkey, follow the instructions for Firefox (replacing Greasemonkey with Tampermonkey).

Tampermonkey shares many of the features of Greasemonkey, including automatic updates, but it is buggy. Use at your own risk.

Direct installation:

1. Right click the. Raw .button on the script page. Click. Save Link As... .

2. Save the file with the extension . .user.js . Example filename(s): . Script_Name_with_Underscores.user.js .

3. Drag the file into your Extensions menu. Click Add when the confirmation dialog appears.

4. Visit an IP.Board forum.

CSS Installation

1. Install Stylish. [Firefox] [Chrome]

2. Enter the Stylish menu and click. Create new style .

3. Name the style in the sidebar on the left.

4. Check the. Enabled .checkbox below the Name field.

5. Paste the CSS code from my post into the new style (the big text field on the right).

6. Apply relevant URLs at the bottom of the editor. An example for Serenes Forest: . URLs on the domain .:. serenesforest.net .

7. Save and visit the site.

Edited by Makaze
Link to comment
Share on other sites

JavaScript: Plaintext BBCode 5.0.4

// requested by Marthur

Makes the BBCode buttons work on Plaintext mode.

Keyboard Shortcuts:

. Ctrl+B .for Bold

. Ctrl+I .for Italic

. Ctrl+U .for Underline

[spoiler=Introduction & Images]Rich Text and its buttons can be useful for quick styling, but the Rich Text editor does not cut it for complex styling. Often resulting in bugs and repeat styles, it can mess with a complex layout.

Plaintext is great for complex styling, but manually typing out your codes gets tedious, especially with complex codes.

Plaintext BBCode combines the buttons from Rich Text mode and the coding capabilities of Plaintext mode to create a useful, fast and user friendly editor.

Compare:

[spoiler=Before]ibdBx9opQj88nY.gif

[spoiler=After]iNtwJMWrTkdH.gif

Updated regularly.

How to Install

Edited by Makaze
Link to comment
Share on other sites

JavaScript: dice_concise Dice Bot 0.1.9

A concise dice simulator for IP.Chat with an editable key.

Syntax: "!roll <quantity of dice>d<sides on dice>[<+-*/>modifier]" - e.g. "!roll 2d20", "!roll 2d20*2+10"

Options:

**Use. Makaze Scripts Options Menu .to edit options.**

Name:. dice_concise_key .

Type:. String .

Description: The key used to trigger rolls.

Default:. !ROLL .

Credits & Info

-- Marcel Kossin's notes: --

I (mkossin) often Dungeon Master on our Neverwinternights Servers called 'Bund der alten Reiche' (eng. 'Alliance of the old realms') at bundderaltenreiche.de (German Site) Often idling in our Channel I thought it might be Fun to have a script to dice. Since I found nothing for irssi I wrote this little piece of script. The script assumes, that if a 'd' for english dice is given it should print the output in English. On the other hand if a 'w' for German 'Würfel' is given it prints the output in German.

Usage.

Anyone on the Channel kann ask '!roll' to toss the dice for him. He just has to say what dice he want to use. The notation should be well known from RP :-) Thus

Write: !roll (quantity of dice)d[or w for german users](sides on dice)

Here are some examples

!roll 2d20

!roll 3d6

OK, I think you got it already :-)

Write: !roll version

For Version Information

Write: !roll help

For Information about how to use it

-- Makaze's notes: --

[Changes in dice_concise:]

Features added:

[ ] Can add bonuses to the roll. e.g. "!roll 3d6+10"

[ ] Output changed to one line only. e.g. "Makaze rolls the 3d6 and gets: 9 [4, 4, 1]"

[ ] Corrected English grammar.

[ ] Removed insults.

[ ] Cleaner code with fewer nested if statements and true case switches.

[ ] Errors call before the loop, saving clock cycles.

Bugs fixed:

[ ] Rolls within the correct range.*

Edge cases added:

[ ] Catch if rolling less than 1 dice.

[ ] Catch if dice or sides are above 100 instead of 99.

-----------------------------------------

* The original dice.pl rolled a number between 1 and ([number of sides] - 1) instead of using the full range. e.g. "!roll 1d6" would output 1 through 5, but never 6.

-----------------------------------------

Original script 'dice.pl' by mkossin.

Updated and ported script 'dice_concise.js' by Makaze.

How to Install

Edited by Makaze
Link to comment
Share on other sites

JavaScript: History Extension + Concise Formatting 1.2.4

Extends the IP.Chat message log to hold a maximum of 10,000 messages. The number is adjustable.

Optionally changes messages to output in a more concise line-by-line format.

Options:

**Use. Makaze Scripts Options Menu .to edit options.**

Name:. ipc_extend_history .

Type:. Boolean .

Description: Extend maximum chat history.

Default:. true .

Name:. ipc_history_extension .

Type:. Number .

Description: Number of messages to keep at one time.

Default:. 10000 .

Name:. ipc_apply_concise .

Type:. Boolean .

Description: Use concise format for new messages.

Default:. false .

Concise format preview:

7d9e5.png

How to Install

Edited by Makaze
Link to comment
Share on other sites

CSS: Minimalist Quotes

Changes the style of quotes to look like this:

7kPnl.png

The code:

p.citation {
border-top: 1px solid #ddd ! important;
border-left: 1px solid #ddd ! important;
border-right: 1px solid #ddd ! important;
background-image: none ! important;
background-color: #f7f7f7 ! important;
border-bottom: 1px dashed #bbb ! important;
}

blockquote.ipsBlockquote {
border-bottom: 1px solid #ddd ! important;
border-left: 1px solid #ddd ! important;
border-right: 1px solid #ddd ! important;
font-size: 13px ! important;
}
How to Install Edited by Makaze
Link to comment
Share on other sites

CSS: Remove Borders and Dropshadows on Avatars

Like it says on the tin.

Preview (Default and Edit):

4AxGU.png

7kPFZ.png

The code:

.ipsUserPhoto {
border-width: 0px;
border-color: transparent;
-webkit-box-shadow: 0px 0px 0px #000;
-moz-box-shadow: 0px 0px 0px #000;
box-shadow: 0px 0px 0px #000;
padding: 0px;
}
How to Install
Link to comment
Share on other sites

Reservations done. You can post now.

I'm not sure if this is intentional, but your IP.Chat scripts point to nowhere.

It was while I was posting them to get things to link to. They should be working now.

Edited by Makaze
Link to comment
Share on other sites

I have used several of these and they're pretty great. Some get more use than others, but all the ones I have work well and I find useful (Plaintext BBCode editor, IP.Chat extended history, one other that I don't see here) or at least entertaining (Dice Concise).
Also bug fixes (when needed) are generally prompt and whatnot, so no complaints there either.

Overall would recommend/10.

EDIT: Actually just had an idea for a script. Something that could save IP.Chat logs to disc in a document (probably a plain text file), or multiple documents, similar to what most IRC clients do.

EDIT 2: To set a good example, reformatting this:
Code Request
Description: Logs IP.Chat conversations while in the room, in a manner similar to most IRC clients. Not sure how this would be stored.
Features: Logs, with names, MAYBE precise timestamps, and if possible broken up by date or something. Searchability would be nice.
Style: Plain text :P:

Edited by Euklyd
Link to comment
Share on other sites

Unfortunately, that is not possible. Letting JavaScript write to files on the client side would introduce a huge security threat.

Fair enough. Is there a way to store it in a similar manner to that-one-thing?

Link to comment
Share on other sites

Yes. It will interfere over time as each domain can hold a maximum for 5MB total storage.

That would probably be fine. If something interesting happens I'd be able to copy the log of that specific event to a plain text file or something manually.

It'd still be a huge improvement.

Link to comment
Share on other sites

I'll get on that in a few minutes.

Alright. Since you asked...

JavaScript: Post Auto-Saving + Management 3.1.1

// requested by Euklyd and Sanagami

Auto-saves your posts on the client side every fifteen seconds, ensuring that most of your posts will be saved in the event of a browser or system crash. Works independently from network activity, so it still works in Offline Mode.

Saved posts can be managed and deleted using the Menu link below every auto-saving post field. The management menu has two folders which are stored in separate files by your browser.

The first folder is the Default folder where all messages are saved by default. Think of it as a buffer for new content through which all of your posts flow.

The second folder is the Saved folder which can only gain messages when they are intentionally moved there from the Default folder. Once they have been moved to the Saved folder, they cannot be moved back. They can only be deleted.

This feature allows you to move important posts into the Saved folder and summarily mark all for deletion in the Default folder. This feature was added to avoid having to manually check each message to see if it is important before deleting it.

Messages in the Saved folder can be named and renamed at will.

How to Install

Edited by Makaze
Link to comment
Share on other sites

JavaScript: IP.Chat Logs 1.4.0

// requested by Euklyd

**Warning!: Save all of your logs to a file and delete all before updating to. 1.2.9 .or later. If you do not, you will have to downgrade to access the old logs.**

**Warning!: Lag will grow as logs build up. If you are experiencing lag, copy your logs into a text file and delete them from the log viewing page. I experienced lag at 20% capacity. Your mileage may vary.**

Keeps and manages IRC-like logs for IP.Chat clients.

Holds a maximum of 5MB in logs. If a new log will exceed the limit, the oldest log will be deleted to make room.

Click. View Logs .below the user list to view the logs.

Click. Download .in the top right of a log to download it as a .log file.

Click. Download All .at the top right of the log viewer to download all of them in one.

Click. Hide Non-Logs .in the log viewer to hide everything but the logs for easy pasting.

Images:

7lM02.png

ib2s2kYOnIeWnr.png

Extra credits:

Special thanks to Proto for requesting the delete functions.

How to Install

Edited by Makaze
Link to comment
Share on other sites

This is exactly what I was looking for, thanks. It's already been useful and makes quoting multiple lines MUCH easier, as well as storing logs in the medium-term for later archival.

Again, would recommend/10.

Link to comment
Share on other sites

Okay so I'm pretty sure that the new version has been crashing Chrome.

IP.Chat starts to hang and then the entire thing crashes. I'm reverting to the old one for the time being.

If you can tell me where to find error logs I can see if I can retrieve+post them.

Link to comment
Share on other sites

Do console logs stick around after an application force closes?

I'm not seeing anything obvious, but what I have currently is

event.returnValue is deprecated. Please use the standard event.preventDefault() instead.
triggerTMTHotkey 
KeyboardEvent
 tmtfocus.js:1
3
Uncaught TypeError: Object #<Text> has no method 'getElementsByTagName' script.js:62
Calling LP_setval from A onloadwff.js:78
triggerTMTHotkey 
KeyboardEvent
 tmtfocus.js:1
triggerTMTHotkey 
KeyboardEvent
 tmtfocus.js:1
triggerTMTHotkey 
KeyboardEvent
 tmtfocus.js:1
Failed to load resource: net::ERR_TIMED_OUT http://serenesforest.net/forums/index.php?s=c07f45f534d72905292f2e24df5e48c…on=update&md5check=61e46562f618ab3d478c29b32baf5e7e&_nocache=1394175053049
Failed to load resource: net::ERR_TIMED_OUT http://serenesforest.net/forums/index.php?s=c07f45f534d72905292f2e24df5e48c…on=update&md5check=61e46562f618ab3d478c29b32baf5e7e&_nocache=1394175233047
2
Uncaught TypeError: Cannot call method 'getElementsByTagName' of null script.js:62
triggerTMTHotkey 
KeyboardEvent
 tmtfocus.js:1
triggerTMTHotkey 
KeyboardEvent
 tmtfocus.js:1
Edited by Euklyd
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...