This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( function( $ ) { | |
"use strict"; | |
$.fn.fireOnDisable = function( settings ) { | |
// Only perform this DOM change if we have to watch changes with propertychange | |
// Also only perform if getOwnPropertyDescriptor exists - IE>=8 | |
// I suppose I could test for "propertychange fires, but not when form element is disabled" - but it would be overkill | |
if( !( 'onpropertychange' in document.createElement( 'input' ) ) || Object.getOwnPropertyDescriptor === undefined ) { | |
return this; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Madison.com NonSubscribe | |
// @description Stops subscription redirect on madison.com articles | |
// | |
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html | |
// @license (CC); http://creativecommons.org/licenses/by-nc-sa/3.0/ | |
// | |
// @namespace NonSubscribe.me | |
// @include http://*.madison.com/* | |
// @updateURL https://gist.githubusercontent.com/cmcnulty/11194631/raw/unsubscribe-madison-com.user.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Pittsburgh Post-Gazette NonSubscribe | |
// @description Fix Post-Gazette | |
// @license GPL version 3 or any later version; http://www.gnu.org/copyleft/gpl.html | |
// @license (CC); http://creativecommons.org/licenses/by-nc-sa/3.0/ | |
// @namespace NonSubscribe.me | |
// @include http://www.post-gazette.com/* | |
// @updateURL https://gist.githubusercontent.com/cmcnulty/11383138/raw/unsubscribe-post-gazette.user.js | |
// @downloadURL https://gist.githubusercontent.com/cmcnulty/11383138/raw/unsubscribe-post-gazette.user.js | |
// @version 0.0.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// function that runs when shortcode is called | |
function jruuc_themes_shortcode() { | |
$wcatTerms = get_terms('uu_service_topics', array('hide_empty' => 1, 'parent' =>0)); | |
$message = '<ul class="uu_topics">'; | |
foreach($wcatTerms as $wcatTerm) { | |
$wsubargs = array( | |
'hierarchical' => 1, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: WP Cookie Blocker | |
* Description: Blocks cookies set by other plugins (specifically WP Dark Mode) | |
* Version: 1.0.0 | |
* Author: Your Name | |
*/ | |
// Exit if accessed directly | |
if (!defined('ABSPATH')) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Cookie Blocker Script | |
* | |
* This script overrides the document.cookie setter to block cookies with specific prefixes | |
* from being set. | |
*/ | |
(function() { | |
// Get the original descriptor | |
const originalDescriptor = Object.getOwnPropertyDescriptor(Document.prototype, 'cookie'); | |
const originalSetter = originalDescriptor.set; |