User:B. Wolterding/cleanup-fiction.js

// Add cleanup tags (notability, primarysources, inuniverse) to article - for fictional topics

$(addCFLink);

function addCFLink{ if (/[?&]action=edit/.test(window.location.href) && !(/[?&]title=(Talk|User|User talk):/.test(window.location.href)) ) { addPortletLink ('p-tb', 'javascript:addFictionCleanup', 'Fiction cleanup'); } }

function addFictionCleanup {

var cleanuptags =   "{"+"{notability|fiction}}\n" + "{"+"{primarysources}}\n" + "{"+"{inuniverse}}\n"; var editsummary = "Notability concerns per WP:FICTION - adding cleanup tags";

var textbox = document.editform.wpTextbox1;

textbox.value = cleanuptags + textbox.value;

var edits = document.editform.wpSummary;

edits.value = editsummary;

document.editform.wpPreview.click;

}