Git Product home page Git Product logo

advancedflagging's Introduction

AdvancedFlagging: Mod-compatible deletion fork

This fork adds a delete system for primarily moderators. saves an entire extra click

build

AdvancedFlagging started as a set of modular TypeScript tools to aid with StackExchange Userscripts. It has support for:

  • SmokeDetector/MetaSmoke
  • Natty/Sentinel
  • GenericBot
  • Guttenberg/CopyPastor
  • Chat
  • Stack Exchange API

Credits

This code uses different bits and pieces from the following sources:

Installation

Click this link to install the userscript via your favourite userscript manager. Currently, only TamperMonkey is officially supported

What does it do?

AdvancedFlagging adds icons from Smokey, Natty and Guttenberg to posts which have been reported. In addition, flags made through the AdvancedFlagging interface are reported to Natty, Smokey, Guttenberg and GenericBot if required.

Interface

Picture of the interface

  • 'Leave Comment' is ticked by default if there are no comments beneath the post to avoid comment spam or if you have chosen otherwise. This is only available on Stack Overflow.

  • 'Flag' is always ticked by default unless you choose otherwise. Unticking this box will not flag the post. Feedback to all sources will, however, still be sent.

  • 'Downvote' is always ticked by default unless you choose otherwise. It downvotes a post if you've also selected an option that by default flags the post

For every feedback that is sent to a bot a banner informs the user if it was sent successfully or if there was an error. A tick, check or flag is appended to the post menu, too. For example:

Post flagged

Feedback sent, but post not flagged

Oops, failed to send feedback

There's also support for the flags summary page:

AdvancedFlagging in flags summary

The userscript is (should) be dark mode compatible and fully responsive.

Bot icons

Smokey

Smokey Icon

Natty

Natty Icon

Guttenberg

Guttenberg Icon

Specialized reports

Guttenberg reports

When Guttenberg has detected a post, two of the three additional options below appear in the dropdown:

Dropdown with Guttenberg

These links will raise the following custom flags:

  • Plagiarism

    Possible plagiarism of another answer [first linked question], as can be seen here [link to CopyPastor report]

    No comment will be left.

  • Duplicate answer

    The answer is a repost of their other answer [first linked question], but as there are slight differences as seen here [first Guttenberg report], an auto flag wouldn't be raised.

    The following comment will also be left:

    Please don't add the same answer to multiple questions. Answer the best one and flag the rest as duplicates, once you earn enough reputation. If it is not a duplicate, [edit] the answer and tailor the post to the question.

  • Bad attribution

    This post is copied from another answer, as can be seen here [link to CopyPastor]. The author only added a link to the other answer, which is not the proper way of attribution.

    No comment will be left.

'Looks fine', 'Needs editing', 'Vandalism' and any NAA response will register as a false positive to Guttenberg.

Changing AdvancedFlagging defaults

AdvancedFlagging allows you to both edit any comments you choose to leave or flags you choose to raise and configure it so that it's more convenient to use.

Configuration

The link to configure AdvancedFlagging is at the footer of each StackExchange site.

Picture of link to configuration

Clicking it opens the following modal box:

Picture of configuration box

General

  • Open dropdown on hover: open the dropdown when you hover over the 'AdvancedFlagging' link.
  • Watch for manual flags: send feedback to bots when you manually flag the post.
  • Watch for queue responses: send feedback to bots when you choose the 'Recommend Deletion' option in the Low Quality Posts Queue.
  • Disable AdvancedFlagging link: stops displaying the AdvancedFlagging button in the post menu.
  • Uncheck Leave comment/Flag/Downvote by default: don't check the respective checkbox by default

Flags

Choose which options should appear in the AdvancedFlagging dropdown.

Admin

  • Clear Metasmoke configuration: removes your metasmoke's access token from AdvancedFlagging
  • Clear chat fkey: removes the chat fkey. It will be re-retrieved the next time you send feedback to Natty.

Comments and flags

The link to change the content of the comments and flags is in the footer of each StackExchange site as well:

Picture of the comments and flags link

It opens the following modal:

Click 'Edit' to start editing a flag type, 'Hide' if you did not make any changes or 'Save' when you're done.

  • The textarea is the content of the comment/flag.
  • The <select> right below is the type of flag that should be raised when this comment is left (if you've ticked the 'Flag' checkbox).
    • PostLowQuality is the VLQ flag.
    • AnswerNotAnAnswer is the NAA flag.
    • NoFlag doesn't raise a flag.

Building

Install the dependencies with:

npm install

Then compile the code with:

npm run build

The distributable file is found under /dist/AdvancedFlagging.user.js and can be pasted directly into the userscript manager.

Bugs/Feature requests

For bugs or feature requests, please open an issue on GitHub.

advancedflagging's People

Contributors

bhargav-rao avatar danbopes avatar dependabot[bot] avatar double-beep avatar geisterfurz007 avatar kamil-tekiela avatar lunarwatcher avatar machavity avatar papershine avatar raitalharehman avatar rjrudman avatar sri-shree avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.