This is a small piece of code that will search an HTML string using regexp and replace all instances of id="faq-#"
with a consecutive number.
So if you need to add new articles, you can easly renumber them with this script.
var string = `| ; | |
| ; AutoHotkey Version: 1.x | |
| ; | |
| ; | |
| ; -------------------------------------------------------------- | |
| ; Emulate OSX keymap layout | |
| ; on Windows | |
| ; -------------------------------------------------------------- | |
| #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. |
| 'An aplle is not a banana'.replace(/a/g, (() => { | |
| var number = 0; | |
| return () => { | |
| return number++; | |
| } | |
| })()) |
| // ==UserScript== | |
| // @name JIRA: New MMP tickets sound alert | |
| // @namespace http://wunderman.com.ar/ | |
| // @version 0.1 | |
| // @description Add some enhancements to the JIRA interface. | |
| // @author Lucas Dasso <[email protected]> | |
| // @updateURL https://gist.githubusercontent.com/Lukas238/ca3b87a37dfc339d5a9c8a2f150187a0/raw/jira-new_mmp_tickets_sound_alert.user.js | |
| // @downloadURL https://gist.githubusercontent.com/Lukas238/ca3b87a37dfc339d5a9c8a2f150187a0/raw/jira-new_mmp_tickets_sound_alert.user.js | |
| // @match http*://*/secure/Dashboard.jspa* | |
| // @require http://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.1/jquery.min.js |
''Curso'': Diseño de Experiencia de Usuario (UX) ''Area:'' Interactive ''Asesor Académico:'' Juan Manuel Carraro
*18 hs. (3 días intensivos) *Arancel: AR$3000.- Consultar por aranceles preferenciales; corporativos, instituciones educativas y miembros de la Comunidad UP *Martes 02, Miércoles 03 y Jueves 04 de Julio de 09 a 17 hs