BukkitOP - UserScript to show original poster of a thread.

Discussion in 'Bukkit Tools' started by hawkfalcon, Aug 5, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    hawkfalcon

    Jozeth came up with idea of adding an [op] to all posts of the original poster, like reddit.
    See http://forums.bukkit.org/threads/original-poster-thread-starter.163849/.

    I decided to make a userscript that did this, and extended the functionality a bit. Here is an example:

    You can download this userscript here:
    http://userscripts.org/scripts/show/175134
    or get the current version with the purple tags here:
    http://userscripts.org/scripts/versions/175134


    Note: for chrome you need TamperMonkey:
    https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo/
    and firefox Greasemonkey.
    Let me know what you think ;)
     
  2. Offline

    MysteryManX

    *looks at first post*
     
    hawkfalcon likes this.
  3. Offline

    Archarin

    Installed.
     
    hawkfalcon likes this.
  4. Offline

    Ivan

    Not working for me on chrome :(
    EDIT: works like a charm
     
  5. Offline

    hawkfalcon

    Do you have tampermonkey?
     
  6. Online

    Jade

    Waterfox works with Greasemonkey. (Meaning Aurora, and Firefox do as well.)
    [​IMG]
     
  7. Offline

    lol768

  8. Offline

    hawkfalcon

    Hoolean, Dpasi314 and Jozeth like this.
  9. Offline

    chasechocolate

    Love it! Works like a charm :)
     
    hawkfalcon likes this.
  10. Offline

    lol768

    and the moderators.. :/
     
    hawkfalcon likes this.
  11. Offline

    Dpasi314

    :( EvilSeph is broken.
     
  12. Offline

    hawkfalcon

    Only if you use lol's script :3
     
  13. Offline

    xGhOsTkiLLeRx

    Sweet :)
     
    Jozeth likes this.
  14. Offline

    Hoolean

    *anxiously peers out*

    Safari?
     
    Archarin, Jozeth and Dpasi314 like this.
  15. Offline

    hawkfalcon

    Its like 2 lines, you can do it :-p
     
  16. Offline

    MysteryManX

    Just installed this for Greasemonkey/Firefox, and its actually alright.

    I thought it just highlights the date or something. xD
     
  17. Offline

    hawkfalcon

    Jade it works on Chrome too
     
  18. Offline

    CrazyGuy3000

    This works awesome, im loving being able to see the OP :p
     
  19. Offline

    Lolmewn

    Nice! I like it!
     
  20. Offline

    JOPHESTUS

    I recently switched OS and for some reason when I imported chrome stuff, this script was no longer present in my tamper monkey scripts. Can I just say, I always took it for granted when I had it, but spending a week without it was like spending a week without water. This script is why I get up in the morning.

    Nice work.

    ty
     
    hawkfalcon likes this.
  21. Offline

    hawkfalcon

    Totally forgot this wasn't built in to xf o.o
     
    JOPHESTUS likes this.
  22. Offline

    Garris0n

    It really should be.
     
    JOPHESTUS and hawkfalcon like this.
  23. Offline

    Garris0n

    Userscripts.org appears to be dead :(
     
  24. Offline

    Deleted user

    Garris0n likes this.
  25. Offline

    Hoolean

    On-site mirror just in case the other mirror ever goes down :p

    Code:javascript
    1. // ==UserScript==
    2. // [USER=35164]name[/USER] BukkitOP
    3. // [USER=35164]name[/USER]space [url]http://hawkfalcon.com[/url]
    4. // @description Add OP to original poster name
    5. // [USER=90636014]Include[/USER] [url]http://forums.bukkit.org/*[/url]
    6. // @version 1
    7. // ==/UserScript==
    8. var $name = $('#pageDescription .username').text();
    9. $('.author:contains(' + $name + ')').prepend('<strong style="color:red">[op] </strong>');
    10. $('.userText::contains(' + $name + ')').append('<span class="userrankplugindev">Original Poster</span>');
     
    Garris0n likes this.
Thread Status:
Not open for further replies.

Share This Page