This file contains 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 | |
/** | |
* Required services: @config, @path_helper, @router | |
* | |
* @param string $route_name | |
* @return string | |
*/ | |
public function get_raw_route($route_name) | |
{ |
This file contains 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
class Element(): | |
closable = True | |
mergeable = True | |
class Italic(Element): | |
tag = 'i' | |
class Bold(Element): | |
tag = 'b' |
This file contains 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"; | |
function parseOgp($container) { | |
$container.find('.postlink').each(function() { | |
var ogpdata = $(this).data('ogp'); | |
if (ogpdata.title !== undefined) { | |
var block = '<div class="ogpblock">'; | |
if (ogpdata.image !== undefined) { |
This file contains 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 | |
class m1_initial_schema extends \phpbb\db\migration\migration | |
{ | |
public function update_schema() | |
{ | |
return array( | |
'add_tables' => array( | |
$this->table_prefix . 'test_table' => array( | |
'COLUMNS' => array( |
This file contains 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 phpBB foes | |
// @namespace https://kasimi.net | |
// @description Hides foes' posts | |
// @include https://www.phpbb.com/community/viewtopic.php* | |
// @version 2 | |
// @grant none | |
// ==/UserScript== | |
(function() { |