Skip to content

Instantly share code, notes, and snippets.

@thisissandip
Created August 30, 2022 06:52
Show Gist options
  • Save thisissandip/5553ab5e6930b6e9d1a86293248dd57f to your computer and use it in GitHub Desktop.
Save thisissandip/5553ab5e6930b6e9d1a86293248dd57f to your computer and use it in GitHub Desktop.
Forums notice - Escalate to PA View
// ==UserScript==
// @name WordPress.org Escalate to PAs
// @description Check if this is a forum revie
// @include https://*.wordpress.org/support/topic/*
// @include https://*.wordpress.org/support/view/*
// @include https://wordpress.org/support/topic/*
// @include https://wordpress.org/support/view/*
// @require https://code.jquery.com/jquery-1.11.0.min.js
// ==/UserScript==
if ($('.wporg-ratings')[0]) {
$( ".page-header" ).before( "<p style='background: #ed594e; padding: 10px 0; color: #fff; text-align: center; '>Escalate to PA View. Use Macro - PA (Send to > Woo > Forum)</p>" );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment