Makaze Posted March 6, 2014 Share Posted March 6, 2014 (edited) **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 CodesMeta ScriptsMakaze Scripts Options Menu 1.0.5Forum ScriptsAutomatic Notifications 1.0.0Change 'Favorite Fire Emblem' to 'Favorite FE' in Miniprofiles 1.0.2Custom Avatars 2.0.0 // requested by KonForum Cleanup 2.0.0 // requested by James BondHide 'Favourite Fire Emblem Game' in Miniprofiles 1.0.0Hide Gender in Miniprofiles 1.0.2Hide Ignored Post Notices 1.0.0. Deprecated .// Use True Ignore insteadHide the 'Edit Post' Button in Mafia Subforum 1.0.2Isolate Posts by User 1.1.0 // requested by EuklydLockpick Quotes 1.0.1Member Nicknames 2.0.0Navigation Shortcuts 2.0.4Plaintext BBCode 5.0.4 // requested by MarthurPost Auto-Saving + Management 4.0.0 // requested by Euklyd and SanagamiPost Loss Prevention 1.0.6Post Style 1.0.5Prevent Video Preload 2.0.0 // requested by EuklydQuote 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 ScriptsAuto-Resizing Popup 1.0 // requested by SaethoriConvert Smilies to Text 1.0 // requested by Blyverndice_consise Dice Bot 0.1.9History Extension + Concise Formatting 1.2.4IP.Chat Ignore 1.2.0 // requested by UmikoIP.Chat Kick Notice 1.1.1IP.Chat Logs 1.4.0 // requested by EuklydNickname Users 1.0.1 // requested by BlyvernIP.Chat Pings + Highlights 2.4.1 // requested by NutOfDeath and EuklydIP.Chat-Specific Theme 1.1.3 // requested by BlueWyvern4Standalone Resources (No install required)BBCode Post EditorFire Emblem Stat AveragerStylish (CSS) CodesFixed Size Smilies (for IP.Chat)Increase Height of IP.Chat Window (600px)Minimalist QuotesRemove 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 February 17, 2017 by Makaze Quote Link to comment Share on other sites More sharing options...
Makaze Posted March 6, 2014 Author Share Posted March 6, 2014 (edited) 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 June 10, 2014 by Makaze Quote Link to comment Share on other sites More sharing options...
Makaze Posted March 6, 2014 Author Share Posted March 6, 2014 (edited) JavaScript: Change 'Favorite Fire Emblem' to 'Favorite FE' in Miniprofiles 1.0.2 Like it says on the tin. Meant to make the miniprofile take up less space. How to Install Edited December 17, 2014 by Makaze Quote Link to comment Share on other sites More sharing options...
Makaze Posted March 6, 2014 Author Share Posted March 6, 2014 (edited) JavaScript: Hide Gender in Miniprofiles 1.0.2 Like it says on the tin. Meant to make the miniprofile take up less space and allow the user to read others' posts without involuntary preconceptions. How to Install Edited December 17, 2014 by Makaze Quote Link to comment Share on other sites More sharing options...
Makaze Posted March 6, 2014 Author Share Posted March 6, 2014 (edited) 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] [spoiler=After] Updated regularly. How to Install Edited September 10, 2016 by Makaze Quote Link to comment Share on other sites More sharing options...
Makaze Posted March 6, 2014 Author Share Posted March 6, 2014 (edited) JavaScript: Post Loss Prevention 1.0.6 Forces the browser to ask you before before leaving a page with an unfinished post. How to Install Edited December 17, 2014 by Makaze Quote Link to comment Share on other sites More sharing options...
eclipse Posted March 6, 2014 Share Posted March 6, 2014 I'm not sure if this is intentional, but your IP.Chat scripts point to nowhere. Quote Link to comment Share on other sites More sharing options...
Makaze Posted March 6, 2014 Author Share Posted March 6, 2014 (edited) 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 December 17, 2014 by Makaze Quote Link to comment Share on other sites More sharing options...
Makaze Posted March 6, 2014 Author Share Posted March 6, 2014 (edited) 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: How to Install Edited December 17, 2014 by Makaze Quote Link to comment Share on other sites More sharing options...
Makaze Posted March 6, 2014 Author Share Posted March 6, 2014 CSS: Increase Height of IP.Chat Window (600px) Pretty obvious. The code: #messages-display { height: 600px; } How to Install Quote Link to comment Share on other sites More sharing options...
Makaze Posted March 6, 2014 Author Share Posted March 6, 2014 (edited) CSS: Minimalist Quotes Changes the style of quotes to look like this: 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 March 6, 2014 by Makaze Quote Link to comment Share on other sites More sharing options...
Makaze Posted March 6, 2014 Author Share Posted March 6, 2014 CSS: Remove Borders and Dropshadows on Avatars Like it says on the tin. Preview (Default and Edit): 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 Quote Link to comment Share on other sites More sharing options...
Makaze Posted March 6, 2014 Author Share Posted March 6, 2014 (edited) 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 March 6, 2014 by Makaze Quote Link to comment Share on other sites More sharing options...
euklyd Posted March 6, 2014 Share Posted March 6, 2014 (edited) 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 RequestDescription: 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 Edited March 6, 2014 by Euklyd Quote Link to comment Share on other sites More sharing options...
Makaze Posted March 6, 2014 Author Share Posted March 6, 2014 Unfortunately, that is not possible. Letting JavaScript write to files on the client side would introduce a huge security threat. Quote Link to comment Share on other sites More sharing options...
euklyd Posted March 6, 2014 Share Posted March 6, 2014 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? Quote Link to comment Share on other sites More sharing options...
Makaze Posted March 6, 2014 Author Share Posted March 6, 2014 (edited) Yes. It would interfere over time as each domain can hold a maximum of 5MB total storage. Edited March 6, 2014 by Makaze Quote Link to comment Share on other sites More sharing options...
euklyd Posted March 6, 2014 Share Posted March 6, 2014 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. Quote Link to comment Share on other sites More sharing options...
Makaze Posted March 6, 2014 Author Share Posted March 6, 2014 (edited) 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 December 17, 2014 by Makaze Quote Link to comment Share on other sites More sharing options...
Makaze Posted March 6, 2014 Author Share Posted March 6, 2014 (edited) 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: Extra credits: Special thanks to Proto for requesting the delete functions. How to Install Edited December 17, 2014 by Makaze Quote Link to comment Share on other sites More sharing options...
euklyd Posted March 7, 2014 Share Posted March 7, 2014 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. Quote Link to comment Share on other sites More sharing options...
euklyd Posted March 7, 2014 Share Posted March 7, 2014 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. Quote Link to comment Share on other sites More sharing options...
Makaze Posted March 7, 2014 Author Share Posted March 7, 2014 Press F12 and go to the Console tab. Paste all of the error output here, especially any line numbers. Quote Link to comment Share on other sites More sharing options...
euklyd Posted March 7, 2014 Share Posted March 7, 2014 (edited) 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 March 7, 2014 by Euklyd Quote Link to comment Share on other sites More sharing options...
Makaze Posted March 7, 2014 Author Share Posted March 7, 2014 Bugs fixed. Feel free to report more. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.