Skip to content

Instantly share code, notes, and snippets.

@felixexter
Last active January 14, 2023 21:32
Show Gist options
  • Select an option

  • Save felixexter/a21cdc536b48c91f7f4bcdbfaf393ad0 to your computer and use it in GitHub Desktop.

Select an option

Save felixexter/a21cdc536b48c91f7f4bcdbfaf393ad0 to your computer and use it in GitHub Desktop.

Revisions

  1. felixexter revised this gist Jun 28, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -18,5 +18,5 @@ https://trello.com/c/MMIAzcT1

    ## Let's do it just like 1-2-3
    1. [Install extension for your browser](http://mybrowseraddon.com/custom-style-script.html) (you can use some extension whatever you like)
    2. Insert that code below for url **`https://trello.com/`**. ![Custom script instruction](http://s.csssr.ru/U02D0FE5H/20170626145611.png)
    2. Insert that code below for url **`https://trello.com/`**. ![Custom script instruction](http://s.csssr.ru/U02D0FE5H/20170628110421.png)
    3. Now you can drink everything you want
  2. felixexter revised this gist Jun 28, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion readme.md
    Original file line number Diff line number Diff line change
    @@ -18,5 +18,5 @@ https://trello.com/c/MMIAzcT1

    ## Let's do it just like 1-2-3
    1. [Install extension for your browser](http://mybrowseraddon.com/custom-style-script.html) (you can use some extension whatever you like)
    2. Insert that code below for url `https://trello.com/b/`. ![Custom script instruction](http://s.csssr.ru/U02D0FE5H/20170626145611.png)
    2. Insert that code below for url **`https://trello.com/`**. ![Custom script instruction](http://s.csssr.ru/U02D0FE5H/20170626145611.png)
    3. Now you can drink everything you want
  3. felixexter revised this gist Jun 28, 2017. 1 changed file with 21 additions and 15 deletions.
    36 changes: 21 additions & 15 deletions undressTrelloLinks.js
    Original file line number Diff line number Diff line change
    @@ -1,20 +1,26 @@
    const links = document.getElementsByClassName('js-card-name')
    (shouldNotRun => {
    if (shouldNotRun) return

    const updateLinks = () =>
    Array.from(links).forEach(link => {
    const attr = link.getAttribute('href')
    window.__UNDRESS_TRELLO_LINKS__ = true

    if (!attr) return

    const matched = attr.match(/\/c\/\w*/)

    if (!matched) return
    const links = document.getElementsByClassName('list-card')

    link.setAttribute('href', matched[0])
    })
    const updateLinks = () =>
    Array.from(links).forEach(link => {
    const attr = link.getAttribute('href')

    if (!attr) return

    const matched = attr.match(/\/c\/\w*/)

    if (!matched) return

    window.addEventListener('DOMContentLoaded', () => {
    updateLinks()
    link.setAttribute('href', matched[0])
    })

    setInterval(updateLinks, 2000)
    })
    window.addEventListener('DOMContentLoaded', () => {
    updateLinks()

    setInterval(updateLinks, 2000)
    })
    })(window.__UNDRESS_TRELLO_LINKS__)
  4. felixexter revised this gist Jun 28, 2017. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions undressTrelloLinks.js
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,11 @@ const links = document.getElementsByClassName('js-card-name')

    const updateLinks = () =>
    Array.from(links).forEach(link => {
    const matched = link.getAttribute('href').match(/\/c\/\w*/)
    const attr = link.getAttribute('href')

    if (!attr) return

    const matched = attr.match(/\/c\/\w*/)

    if (!matched) return

    @@ -13,4 +17,4 @@ window.addEventListener('DOMContentLoaded', () => {
    updateLinks()

    setInterval(updateLinks, 2000)
    })
    })
  5. felixexter revised this gist Jun 26, 2017. 1 changed file with 8 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -4,10 +4,18 @@

    ![Before custom script](http://s.csssr.ru/U02D0FE5H/20170626150131.png)

    ```
    https://trello.com/c/MMIAzcT1/461-candidates-new-%D1%82%D0%B5%D1%81%D1%82%D0%BE%D0%B2%D0%BE%D0%B5-%D0%B7%D0%B0%D0%B4%D0%B0%D0%BD%D0%B8%D0%B5-%D0%B4%D0%BB%D1%8F-%D0%BC%D0%B8%D0%B4%D0%BB-%D1%81%D0%B8%D0%BD%D1%8C%D0%BE%D1%80
    ```

    ## After

    ![After custom script](http://s.csssr.ru/U02D0FE5H/20170626151057.png)

    ```
    https://trello.com/c/MMIAzcT1
    ```

    ## Let's do it just like 1-2-3
    1. [Install extension for your browser](http://mybrowseraddon.com/custom-style-script.html) (you can use some extension whatever you like)
    2. Insert that code below for url `https://trello.com/b/`. ![Custom script instruction](http://s.csssr.ru/U02D0FE5H/20170626145611.png)
  6. felixexter created this gist Jun 26, 2017.
    14 changes: 14 additions & 0 deletions readme.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    # Undress your Trello links

    ## Before

    ![Before custom script](http://s.csssr.ru/U02D0FE5H/20170626150131.png)

    ## After

    ![After custom script](http://s.csssr.ru/U02D0FE5H/20170626151057.png)

    ## Let's do it just like 1-2-3
    1. [Install extension for your browser](http://mybrowseraddon.com/custom-style-script.html) (you can use some extension whatever you like)
    2. Insert that code below for url `https://trello.com/b/`. ![Custom script instruction](http://s.csssr.ru/U02D0FE5H/20170626145611.png)
    3. Now you can drink everything you want
    16 changes: 16 additions & 0 deletions undressTrelloLinks.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    const links = document.getElementsByClassName('js-card-name')

    const updateLinks = () =>
    Array.from(links).forEach(link => {
    const matched = link.getAttribute('href').match(/\/c\/\w*/)

    if (!matched) return

    link.setAttribute('href', matched[0])
    })

    window.addEventListener('DOMContentLoaded', () => {
    updateLinks()

    setInterval(updateLinks, 2000)
    })