HackForums Post Helper Custom

Adds additional phrases that can be used in posts as a symbol for something else. This script is written by xerotic, Mr Kewl just updated it.

  1. // ==UserScript==
  2. // @name HackForums Post Helper Custom
  3. // @namespace HackForums Post Helper Custom
  4. // @description Adds additional phrases that can be used in posts as a symbol for something else. This script is written by xerotic, Mr Kewl just updated it.
  5. // @include http://www.hackforums.net/*
  6. // @include http://hackforums.net/*
  7. // @version 1.6
  8. // ==/UserScript==
  9.  
  10. function form_submit(event) {
  11. var form = event ? event.target : this;
  12. var arTextareas = form.getElementsByTagName('textarea');
  13. for (var i = arTextareas.length - 1; i >= 0; i--) {
  14. var elmTextarea = arTextareas[i];
  15. //Start making regexes and formatting them....
  16. //##Template:
  17. // elmTextarea.value = elmTextarea.value.replace(regex,replace);
  18.  
  19. elmTextarea.value = elmTextarea.value.replace("<3","&#9829;");
  20. re = /\[Intro\]/gi;
  21. elmTextarea.value = elmTextarea.value.replace(re,"Welcome to Hack Forums! \n Firstly, Im glad you chose the HF community to be apart of.\n However, there are rules on this site, which can be found [url=http://www.hackforums.net/misc.php?action=help]here[/url].\n This thread is considered an Introduction Thread, which is disallowed: [quote=Hack Forum Rules]16. We dont allow site goals or achievements in signature this includes but not limited to posts, reps, upgrades, and groups memberships.\n This includes Introduction Threads[/quote]\n Don't worry about this, but familiar yourself with the rules.\n See you around mate! :blackhat: \n \n /Closed");
  22. re = /\[Upgrade\]/gi;
  23. elmTextarea.value = elmTextarea.value.replace(re,"Congrats on your upgrade! \n However, since you are an upgraded member now, it is about time you familiarize yourself with the rules.\n [help] \n [quote=Hack Forum Rules]16. We dont allow site goals or achievements in signature this includes but not limited to posts, reps, [b]upgrades[/b], and groups memberships.[/quote]\n Enjoy your new features! \n \n /Closed");
  24. re = /\[iOS\]/gi;
  25. elmTextarea.value = elmTextarea.value.replace(re,"[url=http://www.hackforums.net/forumdisplay.php?fid=137]iOS & iDevice[/url]");
  26. re = /\[passcode\]/gi;
  27. elmTextarea.value = elmTextarea.value.replace(re,"[url=http://www.hackforums.net/showthread.php?tid=3137293&pid=29314584#pid29314584]this post[/url]");
  28. re = /\[tethered\]/gi;
  29. elmTextarea.value = elmTextarea.value.replace(re,"[url=http://www.hackforums.net/showthread.php?tid=3137293&pid=29422602#pid29422602]tethered[/url]");
  30. re = /\[untethered\]/gi;
  31. elmTextarea.value = elmTextarea.value.replace(re,"[url=http://www.hackforums.net/showthread.php?tid=3137293&pid=29422602#pid29422602]untethered[/url]");
  32. re = /\[DFU\]/gi;
  33. elmTextarea.value = elmTextarea.value.replace(re,"[url=http://www.hackforums.net/showthread.php?tid=3137293&pid=29314562#pid29314562]DFU MODE[/url]");
  34. }
  35.  
  36. form._submit();
  37. }
  38.  
  39. window.addEventListener('submit',form_submit, true);
  40. HTMLFormElement.prototype._submit = HTMLFormElement.prototype.submit;
  41. HTMLFormElement.prototype.submit = form_submit;

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址