TrojanK Posted November 22, 2018 Share Posted November 22, 2018 A fork 😀 Spoiler <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> <title>BOM Remover</title> <link rel="icon" type="image/x-icon" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAABhklEQVRYhcWWO0sDQRRGhyikCUQQwUojBBFrE0WSRisLMY0QlIBYpTBY+w9EGwsR7EULwU4LK7GTFFqINnYKKmghPggqrt9ld2GUcWbdnceFU+3MfGdn9nGZ53lMF6gimAC9kedoDJ8HXsAX2AMZKwKoNnDLCYTs2BIoCsLDnei0IdD4Q4AYsyGwKxGYMiqA6gZvEoERYwKoFNiXhH+ADpMCy5Jw4kC5RoLwmiKcKBkRQI2CliL8DOQEZBMJoHrAfYS7l3EOyv8WQA2Ay4Th/AM6TIsOgVWwJqDGPe2L4EVTeMgRLX6jGESCk5qDQ55YhEEVUDckcOVaYMOlAL3GXa53IOtaIO/6CNIuBdaDb4wzgapI4AI8uBI45jqcdwsChd8CJ8xvr3Pg07DANveD+3HhGrxaOIISL/CsGDwOZjUL9PMCc6AJTgVsBseSAVuC3YnDHUjH6oiY/+GgHVlh/hsTR2BBZ1c8CJbAIVM3K49gRltXLJBpB32gDKrB0RLTzG/lUqJ53yIDaW5dr0EQAAAAAElFTkSuQmCC" id="Favicon"> <style type="text/css"> body { font-family: Helvetica, Arial, sans-serif; color: black; background: white; font-size: 1em; } form { margin: 0; } h1 { font-family: Helvetica, Arial, sans-serif; line-height: .85em; margin-bottom: .33em; padding-bottom: 0; border-bottom: #c0c0c0 1px solid; } textarea { background: #eeeeff; border: none; padding: 10px; } #footer { font: italic 90% Helvetica; color: #202020; border-top: 1px solid #c0c0c0; } #footer p { margin: 0 0 1em 0; color: #202020; } #footer img { float: right; margin: 0 0 .5em 2em; } .content { width: 740px; margin: 0 auto; } </style> <script type="text/javascript"> var txt, ival, bc, tbox; function reveal() { txt = document.getElementById('txtarea'); ival = txt.value; if (ival != '') { txt.value = ival.replace(//g, '%EF%BB%BF'); <!--/BOM/--> bc = (txt.value.match(/\%EF\%BB\%BF/g) || []).length; bcount(); } else { bc = 0; bcount(); } } function sncopy() { txt = document.getElementById('txtarea'); ival = txt.value; if (ival != '') { txt.value = ival.replace(/|\%EF\%BB\%BF/g, ''); <!--/BOM|--> navigator.clipboard.writeText(txt.value); bc = (ival.match(//g) || []).length + (ival.match(/\%EF\%BB\%BF/g) || []).length; <!--/BOM/--> bcount(); } else { bc = 0; bcount(); } } function bcount() { tbox = document.getElementById('txtbox'); tbox.value = bc; } </script> </head> <body> <div class="content"> <form onsubmit="return false;"> <h1>BOM Remover</h1> <textarea cols="90" rows="10" id="txtarea" placeholder="Insert text here..."></textarea> <br>BOM count: <input readonly type="text" id="txtbox" style="text-align: center"/> <p><div align="center"> <input type="button" onclick="reveal()" value=" R e v e a l "/>  <input type="button" onclick="sncopy()" value=" S c r u b & C o p y "/>  <button type="reset"/> R e s e t  </div></p> </form> <div id="footer"> <p> </p> <p>Posted on <!--%DateStamp%-->23.11.2018<!----><br>Updated on <!--%DateStamp%-->29.11.2018<!----></p> </div> </div> </body> </html> To test, find "hidden characters" 👇 "Byte Order Mark" Spoiler Edit: Tested 🧐 and working 🤩 on Firefox v63.0.3 and Chrome v70.0.3538.110, on Win10 v1803. Download: BOM remover.txt SHA-256: fdde9bdad085489e61d9345357b20659a7daa56c3f2e077254c7851c8b49dd6e See me play with it 👇 Spoiler Quote Link to comment Share on other sites More sharing options...
debebee Posted November 23, 2018 Share Posted November 23, 2018 (edited) or go here: https://www.urldecoder.org/ Edited November 23, 2018 by teodz1984 Quote Link to comment Share on other sites More sharing options...
Rekkio Posted November 23, 2018 Share Posted November 23, 2018 3 hours ago, TrojanK said: A fork Is it possible to have an userscript that automatically removes the bogus chars from the text copied to clipboard? If modifying the clipboard is not possible having a script to search the <body> element for bogus chars and remove them from the page. Shadowx and TrojanK 1 1 Quote Link to comment Share on other sites More sharing options...
Popular Post TrojanK Posted November 24, 2018 Author Popular Post Share Posted November 24, 2018 (edited) On 11/24/2018 at 5:23 AM, Rekkio said: Is it possible to have an userscript that automatically removes the bogus chars from the text copied to clipboard? Greasemonkey/Tampermonkey script 🐵 // ==UserScript== // @name BOM remover // @version 29nov18 // @description Removing BOM (hidden characters) from Windows clipboard // @author TrojanK // @grant none // @include https://www.nsaneforums.com/* // ==/UserScript== /* * This file is a userscript (javascript). To use it, install the Firefox add-on * "Greasemonkey" (URL: https://www.greasespot.net/) or the Chrome extension * "Tampermonkey" (URL: https://tampermonkey.net/). */ document.addEventListener('copy', function(e) { 'use strict'; navigator.clipboard.writeText(window.getSelection().toString().replace(//g, '')); e.preventDefault(); })(); Edit: "Byte Order Mark" Tested 🧐 and working 🤩 on Firefox v63.0.3 using Greasemonkey v4.7 and Chrome v70.0.3538.110 using Tampermonkey v4.7.44, on Win10 v1803. Download: BOM remover script.txt SHA-256: 5ef886be1770e16c13155ac166bf4347be982a24fde435b0a3443785cbe2ace0 On 11/24/2018 at 5:23 AM, Rekkio said: a script to search the <body> element for bogus chars and remove them from the page I don't think that is needed here at nsane. PS: Instead of copy-pasting the links, it's always better to Quote or post link to the post containing the links 🙂 Edited November 29, 2018 by TrojanK 😉 Machete, Shadowx, Asciito and 8 others 4 7 Quote Link to comment Share on other sites More sharing options...
Popular Post TrojanK Posted February 17, 2019 Author Popular Post Share Posted February 17, 2019 (edited) Thanks @Kalju for https://www.nsaneforums.com/sharecode/sharecode.html Thanks @DeLtA for 👆 . . Link Generator + Sharecoder (DragScript) by @TrojanK Greasemonkey/Tampermonkey script 🐵 (Tested 🧐 and working 🤩 on Firefox v65.0.1 + Greasemonkey v4.7 and Chrome v72.0.3626.109 + Tampermonkey v4.8, on Win10 v1803) Download: DragScript.txt(v17mar2019) SHA-256: 162423f845eddb0a3feea2bc47125a2842c40d4eafc0255a935b24fb9280d843 Select and Drag to get link/sharecode. Edit: NB: DragScript + BOM remover script = Complete solution! Edited March 17, 2019 by TrojanK v17mar2019 cr_wordz, shamu726, DeLtA and 6 others 5 4 Quote Link to comment Share on other sites More sharing options...
Administrator Matt Posted February 17, 2019 Administrator Share Posted February 17, 2019 @Kalju great work as always. If you want to send me a new html code for this to update the sharecode link. https://www.nsaneforums.com/sharecode/sharecode.html Shadowx, DKT27, JeepWillys58 and 1 other 4 Quote Link to comment Share on other sites More sharing options...
Administrator Matt Posted February 18, 2019 Administrator Share Posted February 18, 2019 1 hour ago, Kalju said: Here is one more thing that may be interesting... Great idea. It's not good for here yet, and because we will not be in control over this. Moreover, we will have more problems about insulting from other members. Quote Link to comment Share on other sites More sharing options...
Administrator DKT27 Posted February 19, 2019 Administrator Share Posted February 19, 2019 @Kalju: Can you modify this in a way where a member can un-sharecode an already sharecoded link by pasting in it. Currently the Undo button only works if you have sharecoded the link yourself. There should be a Un-sharecode button for users to remove the sharecode they have found posted by another member. Another feature I would like to request is the ability to sharecode multiple links together, but that's not really important thing. If it's possible to do so. JeepWillys58 1 Quote Link to comment Share on other sites More sharing options...
Administrator Matt Posted February 23, 2019 Administrator Share Posted February 23, 2019 I think it's perfect. DKT27, Jordan and JeepWillys58 3 Quote Link to comment Share on other sites More sharing options...
Administrator DKT27 Posted February 25, 2019 Administrator Share Posted February 25, 2019 On 2/24/2019 at 4:30 AM, Kalju said: I'll make next changes if it is clear, that this is enough good place, at least as long as I have discovered how to make it as normal CKEditor feature. Currently I don't have any good idea, but maybe after some time have it. Still let it be there and like I said, I'll, I want to hide it by default. There will stay only some kind button or icon. Ideally yes, it's taking a lot of space and a spoiler type button or a proper button inside the editor would be good here. JeepWillys58 and m345 2 Quote Link to comment Share on other sites More sharing options...
Popular Post TrojanK Posted April 9, 2019 Author Popular Post Share Posted April 9, 2019 (edited) Link Generator + Sharecoder (DragScript) by @TrojanK Greasemonkey/Tampermonkey script 🐵 (Tested 🧐 and working 🤩 on Firefox v66.0.2 + Greasemonkey v4.7 and Chrome v73.0.3683.103 + Tampermonkey v4.8, on Win10 v1803) Download: DragScript.txt(v9apr2019) SHA-256: 2edd5bc544d4ed644cbf2603402de544868884437665067675938f75be3ff08e Select and Drag to open link/sharecode. Edit: NB: DragScript + BOM remover script = Complete solution! Edited April 9, 2019 by TrojanK 😉 katanga, vhick, vayixunibema and 13 others 11 5 Quote Link to comment Share on other sites More sharing options...
Kalju Posted June 20, 2019 Share Posted June 20, 2019 (edited) Deleted Edited June 26, 2019 by Kalju Iznogoud and DKT27 2 Quote Link to comment Share on other sites More sharing options...
TrojanK Posted January 16, 2020 Author Share Posted January 16, 2020 DragScript v16jan2020 Download: DragScript.txt SHA-256: F34242B6D0701BEC78786AA75EEC3E322F759A1BCFC5C6E7F01A8A0F46D0F51D Thanks @JeepWillys58 for reporting bug. Shadowx and JeepWillys58 1 1 Quote Link to comment Share on other sites More sharing options...
JeepWillys58 Posted January 16, 2020 Share Posted January 16, 2020 (edited) 17 minutes ago, TrojanK said: DragScript v16jan2020 Download: DragScript.txt SHA-256: F34242B6D0701BEC78786AA75EEC3E322F759A1BCFC5C6E7F01A8A0F46D0F51D Thanks @JeepWillys58 for reporting bug. Hi dear friend @TrojanK, I will be at your disposal whenever possible my friend, I update and test it right now and works perfectly. Thanks for the quick and efficient feedback and correction, as always you do your best everytime. Proof: Best Regards! Edited January 16, 2020 by JeepWillys58 Clean personal info TrojanK 1 Quote Link to comment Share on other sites More sharing options...
Popular Post TrojanK Posted January 17, 2020 Author Popular Post Share Posted January 17, 2020 DragScript v18jan2020 ..to open link Spoiler ..to sharecode Spoiler ..to search Spoiler Download: DragScript.txt SHA-256: 3307A444764CFB5E4F03D1557469094E214803E977D0BFD2EE0148DDF9F7B887 Karlston, sefton22, JeepWillys58 and 7 others 7 3 Quote Link to comment Share on other sites More sharing options...
TrojanK Posted January 25, 2020 Author Share Posted January 25, 2020 (edited) DragScript v25jan2020 Download: DragScript.txt SHA-256: 5506E5AF673E2F99F53309DD683B17A78C26F1C5276FED0E21BFEFA8D2355FBF SHA-256: EA52704CAFD0FF89CE8584095B11A366C8EEB8A13C864544245358200C96F6EE Edited January 25, 2020 by TrojanK 😉 Matt, PLASMA, Shadowx and 3 others 5 1 Quote Link to comment Share on other sites More sharing options...
TrojanK Posted January 29, 2020 Author Share Posted January 29, 2020 DragScript v29jan2020 Download: DragScript.txt SHA-256: C464F3C945751BC892500133E8503C5230544504F709F8D8595A77CA77CD719E Matt, ©©©®™, greb and 2 others 2 3 Quote Link to comment Share on other sites More sharing options...
TrojanK Posted February 17, 2020 Author Share Posted February 17, 2020 DragScript v17feb2020 Download: DragScript.txt SHA-256: 12BDA28921B018D1A1901095F9BA9FFE710590B0FF1B9B37206BF831F52BD394 JeepWillys58, Matt and DKT27 3 Quote Link to comment Share on other sites More sharing options...
Popular Post TrojanK Posted March 15, 2020 Author Popular Post Share Posted March 15, 2020 (edited) DragScript v15mar2020 Download: DragScript.txt SHA-256: 4EE924BD80F393A43933ADE7AA18AA207D75E711EF7D397130372FFA35F305DC Edit: supports yaschir-type sharecodes Spoiler added support for BTJB-type sharecodes Spoiler Edited March 16, 2020 by TrojanK 😉 greb, PLASMA, Parradise and 5 others 4 4 Quote Link to comment Share on other sites More sharing options...
TrojanK Posted March 20, 2020 Author Share Posted March 20, 2020 DragScript v20mar2020 Download: DragScript.txt SHA-256: 5D129C21CF6DC9D94464667F5897A8CF90A22BD5C8E3B60F6B1C13E7A7393992 Added support for 2 more rare types of sharecodes Spoiler JeepWillys58, Hamid25, rocknard and 3 others 6 Quote Link to comment Share on other sites More sharing options...
JeepWillys58 Posted March 21, 2020 Share Posted March 21, 2020 23 hours ago, TrojanK said: DragScript v20mar2020 Download: DragScript.txt SHA-256: 5D129C21CF6DC9D94464667F5897A8CF90A22BD5C8E3B60F6B1C13E7A7393992 Added support for 2 more rare types of sharecodes Reveal hidden contents Dear firend @TrojanK, Would it be possible for you to implement in this script the ability to check this topic and notify you when there are updates? Thank you in advance for your excellent work. A big hug. Regards Quote Link to comment Share on other sites More sharing options...
TrojanK Posted March 21, 2020 Author Share Posted March 21, 2020 1 hour ago, JeepWillys58 said: A big hug Namaste 🙏 A notification for new posts? You can follow this topic for that 🙂 Update(s) will be posted if they decide to change "sharecode" to something else. Parradise, JeepWillys58 and DKT27 3 Quote Link to comment Share on other sites More sharing options...
Popular Post TrojanK Posted April 20, 2020 Author Popular Post Share Posted April 20, 2020 DragScript v20apr2020 Download: DragScript.txt SHA-256: F1DF9ECF82E3748C70C00A68E7146C0EFC92EA60D72BDCA67540052866EA7C10 Added support for 1 more type of sharecode Spoiler Parradise, phen0men4, sefton22 and 4 others 2 5 Quote Link to comment Share on other sites More sharing options...
JeepWillys58 Posted April 20, 2020 Share Posted April 20, 2020 2 hours ago, TrojanK said: DragScript v20apr2020 2 hours ago, TrojanK said: DragScript v20apr2020 Download: DragScript.txt SHA-256: F1DF9ECF82E3748C70C00A68E7146C0EFC92EA60D72BDCA67540052866EA7C10 Added support for 1 more type of sharecode Hide contents Thanks dear friend @TrojanK, It is working perfectly, as expected. You always do a Great job. Can I ask about if you have any update to a BOM remove too? The last is the 2018/11/29? Thanks in advanced. Best Regards! @JeepWillys58 Quote Link to comment Share on other sites More sharing options...
TrojanK Posted April 21, 2020 Author Share Posted April 21, 2020 14 hours ago, JeepWillys58 said: Can I ask about if you have any update to a BOM remove too? The last is the 2018/11/29? No update for BOM remover. It is complete. JeepWillys58 1 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.
Note: Your post will require moderator approval before it will be visible.