6

Tab4SE

Screenshot / Code Snippet

Tab4SE-Demo-SpectricSO

About

Uses SmartTabbing™ technology to enable Tabing (Indent) and Shift+Tabing (Unindent).

Can be enabled via the toggle switch in the toolbar (preference is preserved). In accordance to Stack Exchange Design Standards.

Download

Version Minified Unminified
Version 1.2 link link
Version 1.1 link link
Version 1.0 link link

Additional Information

License

Suggestions/Issues

MIT License Suggestions and issues should be raised as an answer in this post

changelog

  • version 1.1
    • Shift + TAB to unindent
    • Add support for question textarea
    • Disabling/Enabling is now stored in LocalStorage, preserve preference
  • version 1.2


For Developers

The unminified version provides an option to customize the number of spaces to indent on Tab. Simply go to this line and follow the instructions in the comments.


Languages/libraries used:

3 Answers 3

4

After I have installed this userscript, I got the menu toolbar empty:

Preview

Also I have got this in the console:

jQuery.Deferred exception: t.find(...).unadornedButtonClick is not a function c@https://cdn.sstatic.net/Js/full.en.js?v=9fbfb8dc3749:9:7713
h@https://cdn.sstatic.net/Js/full.en.js?v=9fbfb8dc3749:9:9001
et@https://cdn.sstatic.net/Js/full.en.js?v=9fbfb8dc3749:9:19004
init@https://cdn.sstatic.net/Js/full.en.js?v=9fbfb8dc3749:9:26949
StackExchange.question.fullInit@https://cdn.sstatic.net/Js/full.en.js?v=9fbfb8dc3749:9:1900
init@https://cdn.sstatic.net/Js/full.en.js?v=9fbfb8dc3749:3:8327
inPageWatchSEFunction/obj[methodName]@https://stackoverflow.com/questions/68462961/webmin-home-page-settings line 4360 > injectedScript:25:46
@https://stackoverflow.com/questions/68462961/webmin-home-page-settings:54:40
i@https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js:2:27449
fireWith@https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js:2:28213
Deferred/</e[f[0]]@https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js:2:29192
i/<@https://cdn.sstatic.net/Js/stub.en.js?v=66447bb47e51:1:10595
y/<@https://cdn.sstatic.net/Js/stub.en.js?v=66447bb47e51:1:16681
c@moz-extension://d4239b2b-2cbd-4319-a240-0b2e31c9f4b1/%20Tab4SE.user.js#28:2:27742
fireWith@moz-extension://d4239b2b-2cbd-4319-a240-0b2e31c9f4b1/%20Tab4SE.user.js#28:2:28487
Deferred/</s[t[0]]@moz-extension://d4239b2b-2cbd-4319-a240-0b2e31c9f4b1/%20Tab4SE.user.js#28:2:30388
n/<@https://cdn.sstatic.net/Js/stub.en.js?v=66447bb47e51:1:15899
c@moz-extension://d4239b2b-2cbd-4319-a240-0b2e31c9f4b1/%20Tab4SE.user.js#28:2:27742
fireWith@moz-extension://d4239b2b-2cbd-4319-a240-0b2e31c9f4b1/%20Tab4SE.user.js#28:2:28487
e@moz-extension://d4239b2b-2cbd-4319-a240-0b2e31c9f4b1/%20Tab4SE.user.js#28:2:29725
l/</t<@moz-extension://d4239b2b-2cbd-4319-a240-0b2e31c9f4b1/%20Tab4SE.user.js#28:2:29755
undefined

I am using Firefox 90.0.1. and using version 1.2 of this userscript.

Update:

I have uninstalled version 1.2 and installed earlier version which is version 1.1 and the problem is solved. Looks like the problem is from version 1.2.

3
  • Which version are you using?
    – Spectric
    Jul 21, 2021 at 1:53
  • 1
    @Spectric 1.2 (Latest, thought).
    – Ghost
    Jul 21, 2021 at 1:53
  • 1
    @Spectric Weird. but I have uninstalled 1.2 and I installed 1.1 and it worked. So, I am not sure what is the problem. Looks like the problem is in 1.2 only.
    – Ghost
    Jul 21, 2021 at 2:00
2

Could we enable this userscript in the edit page?

When I try to edit anything (either question or answer), I don't see the option to turn on/off.

Here is an example:

Preview

I am not sure if this is a bug or feature-request but I will tag as feature request anyway.

1
  • 2
    I thought about this too. I'll consider implementing it in v1.3. Thanks for the suggestion
    – Spectric
    Jul 21, 2021 at 2:34
1

Fixed in version 1.2.


It doesn't work on Firefox with Windows 10, there is no option in the text box:

textbox formatting controls without the Tab4SE option

I tried version 1.0 also. On closer inspection, I saw an error in the console:

Script error in [Greasemonkey script https://github.com/SpectricSO/stack-scripts/Tab4SE; version 1.1]:
ReferenceError: $ is not defined
Tab4SE:76:19
3
  • 1
    @Spectric No, the script doesn't seem to be working at all. I've encountered this error before on my scripts before, and this somehow happened suddenly where the script was working before. It might my browser's privacy settings blocking jQuery from loading.
    – Anonymous
    Jul 18, 2021 at 23:25
  • @Spectric Doesn't work, I even disabled all the privacy protections on my browser. Maybe it has something to do with the way your script loads jQuery? This is very strange.
    – Anonymous
    Jul 18, 2021 at 23:29
  • 2
    I've updated the file to explicitly import jQuery. It should work now.
    – Spectric
    Jul 18, 2021 at 23:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .